aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6f0963b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+FROM python:3.8-slim AS builder
+
+LABEL maintainer = "Navan Chauhan <navanchauhan@gmail.com>" \
+ org.label-schema.name="SaaS-in-a-Flask" \
+ org.label-schema.description="https://web.navan.dev/SaaS-in-a-Flask"
+
+EXPOSE 5000
+
+WORKDIR /saas-in-a-flask
+
+COPY requirements.txt api.py ./
+RUN pip install -r requirements.txt
+
+COPY ./app ./app
+
+RUN FLASK_APP=app flask database create
+RUN FLASK_APP=app flask database admin-create
+
+CMD gunicorn -w 4 api:app -k uvicorn.workers.UvicornWorker -b "0.0.0.0:5000" \ No newline at end of file