Update Dockerfile

This commit is contained in:
Esmail EL BoB 2023-04-25 02:49:57 +02:00 committed by GitHub
parent 6bf175f066
commit 23576a769d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
FROM elixir:1.11.4-alpine FROM elixir:1.11.4-alpine
ARG PLEROMA_VER=develop ARG PLEROMA_VER=develop
ARG UID=911 ARG UID=1000
ARG GID=911 ARG GID=1000
ENV MIX_ENV=prod ENV MIX_ENV=prod
RUN echo "http://nl.alpinelinux.org/alpine/latest-stable/main" >> /etc/apk/repositories \ RUN echo "http://nl.alpinelinux.org/alpine/latest-stable/main" >> /etc/apk/repositories \
@ -18,7 +18,10 @@ RUN mkdir -p /etc/pleroma \
&& chown -R pleroma /etc/pleroma \ && chown -R pleroma /etc/pleroma \
&& mkdir -p ${DATA}/uploads \ && mkdir -p ${DATA}/uploads \
&& mkdir -p ${DATA}/static \ && mkdir -p ${DATA}/static \
&& chown -R pleroma ${DATA} && chown -R pleroma ${DATA} \
&& chown -R pleroma /var \
&& chown -R pleroma /tmp
USER pleroma USER pleroma
WORKDIR /pleroma WORKDIR /pleroma