From 7995f16a68c3db6a7055822484f30940c33f044e Mon Sep 17 00:00:00 2001 From: sn0w Date: Mon, 7 Sep 2020 19:12:09 +0200 Subject: [PATCH] emoji mountpoint fixup (#10) --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c905115..6028c36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,10 +51,17 @@ USER pleroma WORKDIR /home/pleroma # Get pleroma sources +# +# Also make sure that instance/static/emoji exists. +# Pleroma does not ship with an `instance` folder by default, causing docker to create `instance/static` for us at launch. +# In itself that wouldn't be much of an issue, but said folder(s) are created as root:pleroma with 2755. +# This breaks the custom.d step in entrypoint.sh which relies on writing there (See #10). +# ARG PLEROMA_GIT_REPO RUN \ echo "#> Getting pleroma sources from $PLEROMA_GIT_REPO..." 1>&2 && \ - git clone --progress $PLEROMA_GIT_REPO ./pleroma + git clone --progress $PLEROMA_GIT_REPO ./pleroma && \ + mkdir -p ./pleroma/instance/static/emoji WORKDIR /home/pleroma/pleroma