Skip to content

Instantly share code, notes, and snippets.

@spaskob
spaskob / Dockerfile
Created October 11, 2020 07:09 — forked from avishayp/Dockerfile
Add non-root user for alpine linux
# non root user example for alpine
#
# usage:
# $ docker build --build-arg "USER=someuser" --tag test .
# $ docker run --rm test
FROM alpine
ARG USER=default
ENV HOME /home/$USER