Fix mastodon user not being owner of tmp folder in Dockerfile (#28137)

This commit is contained in:
Michael Stanclift 2023-11-30 10:11:21 -06:00 committed by GitHub
parent 963354978a
commit 8710bdb183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,9 @@ RUN \
RUN \ RUN \
# Pre-create and chown system volume to Mastodon user # Pre-create and chown system volume to Mastodon user
mkdir -p /opt/mastodon/public/system; \ mkdir -p /opt/mastodon/public/system; \
chown mastodon:mastodon /opt/mastodon/public/system; chown mastodon:mastodon /opt/mastodon/public/system; \
# Set Mastodon user as owner of tmp folder
chown -R mastodon:mastodon /opt/mastodon/tmp;
# Set the running user for resulting container # Set the running user for resulting container
USER mastodon USER mastodon