diff options
Diffstat (limited to 'docker/app/stretch')
-rw-r--r-- | docker/app/stretch/3.6/Dockerfile | 6 | ||||
-rw-r--r-- | docker/app/stretch/3.7/Dockerfile | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile index 07911778..365ea451 100644 --- a/docker/app/stretch/3.6/Dockerfile +++ b/docker/app/stretch/3.6/Dockerfile @@ -2,6 +2,11 @@ FROM python:3.6-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"] 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"] |