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:
@ -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"]
|
||||
|
Reference in New Issue
Block a user