From 2fb00a4f4e555c7e07927c8bdf7be858152c2ae6 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 5 Jun 2021 19:59:22 +0530 Subject: created Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile 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 " \ + 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 -- cgit v1.2.3