summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2021-08-16 18:32:43 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2021-08-16 18:32:43 +0200
commit5b4bc762da3e1d43436da5d6812032ccf031f45d (patch)
tree37bdcd43e621462fda5e00c4f60fc191365ca82e /Dockerfile
parent7083170bb9e3149a71425e7ed61f0cf8c8a02892 (diff)
Add Docker config
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..cd391ae
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM python:3.9 as pastepy
+
+WORKDIR /app
+COPY requirements.txt .
+
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY . .
+
+EXPOSE 8000
+
+CMD ["gunicorn", "-b", ":8000", "-w", "2", "-k", "gevent", "pastepy:app"]