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

View File

@ -51,10 +51,17 @@ USER pleroma
WORKDIR /home/pleroma WORKDIR /home/pleroma
# Get pleroma sources # 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 ARG PLEROMA_GIT_REPO
RUN \ RUN \
echo "#> Getting pleroma sources from $PLEROMA_GIT_REPO..." 1>&2 && \ 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 WORKDIR /home/pleroma/pleroma