mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 21:13:16 +00:00
Merge pull request #5100 from intentionally-left-nil/set-www-data-uid
Modify the www-data user and group id to match the RUNTIME_UID/GID
This commit is contained in:
commit
6b858aede2
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
# Ensure we run all scripts through 'bash' rather than 'sh'
|
# Ensure we run all scripts through 'bash' rather than 'sh'
|
||||||
SHELL ["/bin/bash", "-c"]
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# Set www-data to be RUNTIME_UID/RUNTIME_GID
|
||||||
|
RUN groupmod --gid ${RUNTIME_GID} www-data \
|
||||||
|
&& usermod --uid ${RUNTIME_UID} --gid ${RUNTIME_GID} www-data
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& mkdir -pv /var/www/ \
|
&& mkdir -pv /var/www/ \
|
||||||
&& chown -R ${RUNTIME_UID}:${RUNTIME_GID} /var/www
|
&& chown -R ${RUNTIME_UID}:${RUNTIME_GID} /var/www
|
||||||
|
|
Loading…
Reference in a new issue