aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/alpine/3.7
diff options
context:
space:
mode:
Diffstat (limited to 'docker/app/alpine/3.7')
-rw-r--r--docker/app/alpine/3.7/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile
index 524d0bfa..ece51045 100644
--- a/docker/app/alpine/3.7/Dockerfile
+++ b/docker/app/alpine/3.7/Dockerfile
@@ -2,6 +2,11 @@ FROM python:3.7-alpine
ARG EXTRAS=deploy
+RUN adduser \
+ --disabled-login \
+ --no-create-home \
+ pysite
+
RUN apk add --no-cache --virtual build \
gcc \
linux-headers \
@@ -18,4 +23,5 @@ RUN apk del --purge build
COPY . .
+USER pysite
CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"]