diff options
author | 2018-08-31 23:25:18 +0200 | |
---|---|---|
committer | 2018-08-31 23:25:18 +0200 | |
commit | 1d1ffe6b0d924760e1e64cf6485f46572129b131 (patch) | |
tree | 65cd8b71bd7a18b44ea417c0cf6ed76a87a8754e /docker | |
parent | Remove unused files. (diff) | |
parent | Install `flake8` on system. (diff) |
Merge branch 'django' into django+documentation-link-api
Diffstat (limited to 'docker')
-rw-r--r-- | docker/base.Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile new file mode 100644 index 00000000..c90ee5dc --- /dev/null +++ b/docker/base.Dockerfile @@ -0,0 +1,18 @@ +# Base image used for building the site. +FROM python:3.7-alpine + +RUN apk add python3-dev git libpq postgresql-dev gcc cmake autoconf automake musl-dev +RUN python3 -m pip install pipenv + +ENV PIPENV_HIDE_EMOJIS=1 +ENV PIPENV_IGNORE_VIRTUALENVS=1 +ENV PIPENV_MAX_SUBPROCESS=2 +ENV PIPENV_NOSPIN=1 +ENV PIPENV_VENV_IN_PROJECT=1 + +COPY . /app +WORKDIR /app + +RUN pipenv install --deploy --system + +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite:wsgi"] |