From 612d374fbea8d616ebf276c30a6fbca78e8f4bf9 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Tue, 11 Feb 2020 20:25:37 +1300 Subject: 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 --- testing/docker/alpine3.8/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/docker/alpine3.8') diff --git a/testing/docker/alpine3.8/Dockerfile b/testing/docker/alpine3.8/Dockerfile index bfef1bd4..43da7acd 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 -- cgit v1.2.3