diff options
Diffstat (limited to 'docker/app/stretch/3.7/Dockerfile')
-rw-r--r-- | docker/app/stretch/3.7/Dockerfile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/app/stretch/3.7/Dockerfile b/docker/app/stretch/3.7/Dockerfile index 35ed5cfd..f0069716 100644 --- a/docker/app/stretch/3.7/Dockerfile +++ b/docker/app/stretch/3.7/Dockerfile @@ -2,6 +2,11 @@ FROM python:3.7-stretch ARG EXTRAS=deploy +RUN adduser \ + --disabled-login \ + --no-create-home \ + pysite + RUN apt-get update -y \ && \ apt-get install --no-install-recommends -y \ @@ -23,4 +28,5 @@ RUN apt-get purge -y \ libc-dev \ libpq-dev +USER pysite CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"] |