aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/alpine/3.6
diff options
context:
space:
mode:
Diffstat (limited to 'docker/app/alpine/3.6')
-rw-r--r--docker/app/alpine/3.6/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile
index 8067adbd..8dadb0de 100644
--- a/docker/app/alpine/3.6/Dockerfile
+++ b/docker/app/alpine/3.6/Dockerfile
@@ -2,6 +2,11 @@ FROM python:3.6-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"]