diff options
author | 2018-09-17 22:53:10 +0200 | |
---|---|---|
committer | 2018-09-17 23:51:12 +0200 | |
commit | f8d00d60156329cba6f66c66cdc73f4a845372a2 (patch) | |
tree | 0165f44ee5ec64c8475479084bf7cf7d41efdf2c /docker | |
parent | Only run `deploy` step on `master` and `django`. (diff) |
Build docker image and pass it around.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/app/alpine/3.6/Dockerfile | 13 | ||||
-rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 13 | ||||
-rw-r--r-- | docker/app/stretch/3.6/Dockerfile | 18 | ||||
-rw-r--r-- | docker/app/stretch/3.7/Dockerfile | 18 |
4 files changed, 62 insertions, 0 deletions
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 |