aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-03 21:46:38 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-03 21:46:38 +0200
commit087a667f7de43b87d672ef7e0b2d235295431cdd (patch)
tree27ef17764c3f32b01e8b8391962060cbe253e8a2 /Dockerfile
parentLinewrap import. (diff)
Try using local registry.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index c4489027..7252598d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1 +1,17 @@
-FROM registry.gitlab.com/python-discord/projects/site/django-base:latest
+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"]