From 23576a769d7f2f7f5c84ba1424b9054f0f11a03b Mon Sep 17 00:00:00 2001 From: Esmail EL BoB Date: Tue, 25 Apr 2023 02:49:57 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c131259..05e9d2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM elixir:1.11.4-alpine ARG PLEROMA_VER=develop -ARG UID=911 -ARG GID=911 +ARG UID=1000 +ARG GID=1000 ENV MIX_ENV=prod 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 \ && mkdir -p ${DATA}/uploads \ && mkdir -p ${DATA}/static \ - && chown -R pleroma ${DATA} + && chown -R pleroma ${DATA} \ + && chown -R pleroma /var \ + && chown -R pleroma /tmp + USER pleroma WORKDIR /pleroma