From f8d00d60156329cba6f66c66cdc73f4a845372a2 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 17 Sep 2018 22:53:10 +0200 Subject: Build docker image and pass it around. --- docker/app/alpine/3.6/Dockerfile | 13 +++++++++++++ docker/app/alpine/3.7/Dockerfile | 13 +++++++++++++ docker/app/stretch/3.6/Dockerfile | 18 ++++++++++++++++++ docker/app/stretch/3.7/Dockerfile | 18 ++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 docker/app/alpine/3.6/Dockerfile create mode 100644 docker/app/alpine/3.7/Dockerfile create mode 100644 docker/app/stretch/3.6/Dockerfile create mode 100644 docker/app/stretch/3.7/Dockerfile (limited to 'docker') diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile new file mode 100644 index 00000000..c062ee8e --- /dev/null +++ b/docker/app/alpine/3.6/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.6-alpine + +ARG EXTRAS=deploy + +RUN apk add git libpq postgresql-dev gcc cmake autoconf automake musl-dev + +COPY . /app +WORKDIR /app + +RUN python3 -m pip install .[$EXTRAS] +RUN apk del git gcc cmake autoconf automake + +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:applicati diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile new file mode 100644 index 00000000..4583840b --- /dev/null +++ b/docker/app/alpine/3.7/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.7-alpine + +ARG EXTRAS=deploy + +RUN apk add git libpq postgresql-dev gcc cmake autoconf automake musl-dev + +COPY . /app +WORKDIR /app + +RUN python3 -m pip install .[$EXTRAS] +RUN apk del git gcc cmake autoconf automake + +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"] diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile new file mode 100644 index 00000000..4cabdbfa --- /dev/null +++ b/docker/app/stretch/3.6/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.6-stretch + +ARG EXTRAS=deploy + +RUN apt-get update -y +RUN apt-get install -y \ + autoconf \ + automake \ + cmake \ + gcc \ + git \ + libc-dev + libpq-dev \ + + +RUN python3 -m pip install .[$EXTRAS] + +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:applicati diff --git a/docker/app/stretch/3.7/Dockerfile b/docker/app/stretch/3.7/Dockerfile new file mode 100644 index 00000000..32aee420 --- /dev/null +++ b/docker/app/stretch/3.7/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.7-stretch + +ARG EXTRAS=deploy + +RUN apt-get update -y +RUN apt-get install -y \ + autoconf \ + automake \ + cmake \ + gcc \ + git \ + libc-dev + libpq-dev \ + + +RUN python3 -m pip install .[$EXTRAS] + +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:applicati -- cgit v1.2.3