From 3658f2ab099940b02292d0696c749bee82c8daee Mon Sep 17 00:00:00 2001 From: Drew Short Date: Mon, 16 Mar 2020 16:34:41 -0500 Subject: [PATCH] Provided a way to set the user ID --- Dockerfile | 4 +++- Makefile | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f6ab2e..152e1bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,10 +19,12 @@ RUN curl -LSo murmur.tar.bz2 ${BZIP_URL} \ FROM alpine:3.11 LABEL maintainer="Drew Short " +ARG USER_ID=9000 + WORKDIR /opt/mumble RUN mkdir -pv /opt/mumble /etc/mumble -RUN adduser -DHs /sbin/nologin mumble +RUN adduser -DHs /sbin/nologin -u ${USER_ID} mumble COPY --from=downloader /opt/mumble /opt/mumble COPY files/config.ini /etc/mumble/config.ini diff --git a/Makefile b/Makefile index 286c669..8250538 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ IMAGE_NAME="sothr/mumble" IMAGE_TAG="$$(grep 'ARG MUMBLE_VERSION' Dockerfile | awk -F = '{print $$2}')" build: - @echo "${IMAGE_TAG}" > tag @docker build --force-rm --pull --tag $(IMAGE_NAME):$(IMAGE_TAG) . purge: