Run the server as an unprivileged user

This commit is contained in:
kaiyou 2018-02-04 23:19:08 +01:00
parent f72c9c1fb6
commit e9021e16c4
2 changed files with 8 additions and 5 deletions

View file

@ -1,6 +1,6 @@
FROM python:2-alpine
RUN apk add --no-cache --virtual .nacl_deps build-base libffi-dev zlib-dev openssl-dev libjpeg-turbo-dev linux-headers postgresql-dev
RUN apk add --no-cache --virtual .nacl_deps su-exec build-base libffi-dev zlib-dev openssl-dev libjpeg-turbo-dev linux-headers postgresql-dev
COPY . /synapse