emoji mountpoint fixup (#10)

This commit is contained in:
sn0w 2020-09-07 19:12:09 +02:00
parent 9398a1b816
commit 7995f16a68
No known key found for this signature in database
GPG Key ID: C45A6D698F224B39
1 changed files with 8 additions and 1 deletions

View File

@ -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