aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-16 22:55:59 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-16 22:55:59 +0200
commit05e33c1f8f3d54b940b7935bab96ca0a8c45bf84 (patch)
treea6e9a53e7cc13cce303c26a0be7f737115995e74 /Dockerfile
parentUse proper key for formatter setting. (diff)
Use sane package manager.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 3 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile
index 6eb2f6d8..9100783b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,13 @@
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
+RUN python3 -m pip install poetry
COPY . /app
WORKDIR /app
-RUN pipenv install --deploy --system
+RUN python3 -m poetry config settings.virtualenvs.in-project true
+RUN poetry install --no-dev
RUN apk del git gcc cmake autoconf automake
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"]