Add user www-data

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

View File

@ -77,11 +77,15 @@ RUN apk -U upgrade \
curl \
&& adduser -g ${GID} -u ${UID} --disabled-password --gecos "" synapse \
&& rm -rf /var/cache/apk/*
# ensure www-data user exists
RUN set -x \
&& addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data
RUN pip install --upgrade pip \
&& pip install -e "git+https://github.com/matrix-org/mjolnir.git#egg=mjolnir&subdirectory=synapse_antispam"
RUN mkdir /var/log/nginx /var/lib/nginx
COPY --from=deps_base /usr/sbin/nginx /usr/sbin