nginx user

This commit is contained in:
deathrow 2022-10-31 20:12:26 -04:00
parent f73311ff9f
commit 21d90eeb3b
No known key found for this signature in database
GPG Key ID: FF39D67A22069F73

View File

@ -78,11 +78,16 @@ RUN apk -U upgrade \
&& adduser -g ${GID} -u ${UID} --disabled-password --gecos "" synapse \ && adduser -g ${GID} -u ${UID} --disabled-password --gecos "" synapse \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
# ensure www-data user exists # Ensure www-data user exists
RUN adduser -S www-data -u 1000
RUN set -x \ RUN set -x \
&& addgroup -g 82 -S www-data \ && addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data && adduser -u 82 -D -S -G www-data www-data
RUN apk --no-cache add shadow && usermod -aG www-data nginx
RUN pip install --upgrade pip \ RUN pip install --upgrade pip \
&& pip install -e "git+https://github.com/matrix-org/mjolnir.git#egg=mjolnir&subdirectory=synapse_antispam" && pip install -e "git+https://github.com/matrix-org/mjolnir.git#egg=mjolnir&subdirectory=synapse_antispam"