diff options
Diffstat (limited to 'docker/app/stretch/3.6')
| -rw-r--r-- | docker/app/stretch/3.6/Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile new file mode 100644 index 00000000..8a37925c --- /dev/null +++ b/docker/app/stretch/3.6/Dockerfile @@ -0,0 +1,33 @@ +FROM python:3.6-stretch + +STOPSIGNAL SIGQUIT +ARG EXTRAS=deploy + +RUN adduser \ + --disabled-login \ + --no-create-home \ + --uid 1500 \ + pysite + +RUN apt-get update -y \ + && \ + apt-get install --no-install-recommends -y \ + gcc \ + libc-dev \ + libpq-dev \ + && \ + apt-get clean \ + && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /app +COPY setup.py /app/setup.py +RUN python3 -m pip install .[$EXTRAS] +COPY . . + +RUN apt-get purge -y \ + gcc \ + libc-dev \ + libpq-dev + +CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"] |