diff options
author | Chris Packham <judge.packham@gmail.com> | 2020-02-11 07:25:37 (GMT) |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2020-02-17 07:07:20 (GMT) |
commit | 612d374fbea8d616ebf276c30a6fbca78e8f4bf9 (patch) | |
tree | 694abe41c84120044d4f050fde32f03ba065ae26 /testing/docker/alpine3.8/Dockerfile | |
parent | 4fa0ba100b8924b27942ff253c5474c655427027 (diff) |
testing/docker: set default value for CTNG_UID/CTNG_GID
Make the creation of docker images easier so that CTNG_UID/CTNG_GID have
a default value if it's not explicitly specified when building. This
will allow publishing of images on various package repositories (e.g.
docker hub, gitlab containers). dmgr.sh can still be used to set the
UID/GID to that of the current user when building a custom container.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'testing/docker/alpine3.8/Dockerfile')
-rw-r--r-- | testing/docker/alpine3.8/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/docker/alpine3.8/Dockerfile b/testing/docker/alpine3.8/Dockerfile index bfef1bd..43da7ac 100644 --- a/testing/docker/alpine3.8/Dockerfile +++ b/testing/docker/alpine3.8/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.8 -ARG CTNG_UID -ARG CTNG_GID +ARG CTNG_UID=1000 +ARG CTNG_GID=1000 RUN addgroup -g $CTNG_GID ctng RUN adduser -D -h /home/ctng -G ctng -u $CTNG_UID -s /bin/bash ctng # Activate community and testing repositories |