Browse Source

Provided a way to set the user ID

master 1.3.0
Drew Short 5 years ago
parent
commit
3658f2ab09
  1. 4
      Dockerfile
  2. 1
      Makefile

4
Dockerfile

@ -19,10 +19,12 @@ RUN curl -LSo murmur.tar.bz2 ${BZIP_URL} \
FROM alpine:3.11
LABEL maintainer="Drew Short <warrick@sothr.com>"
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

1
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:

Loading…
Cancel
Save