Fix and explain user buildargs (#49)

* expose GID AND UID as optional build args

* Give examples on how to use the build-time args in docker-compose

* Prevent overwriting of build args

* Warn about using regular docker run
This commit is contained in:
peterrus
2022-03-17 15:21:04 +01:00
committed by GitHub
parent abe0dc3cb8
commit 09fa1e81e3
3 changed files with 22 additions and 9 deletions

View File

@ -1,11 +1,8 @@
FROM elixir:1.11.4-alpine
ENV UID=911 GID=911 \
MIX_ENV=prod
ARG PLEROMA_VER=develop
ENV UID=911 GID=911 MIX_ENV=prod
ARG UID=911
ARG GID=911
ENV MIX_ENV=prod
RUN echo "http://nl.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories \
@ -40,4 +37,4 @@ COPY ./config.exs /etc/pleroma/config.exs
EXPOSE 4000
ENTRYPOINT ["/pleroma/docker-entrypoint.sh"]
ENTRYPOINT ["/pleroma/docker-entrypoint.sh"]