diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 19:59:22 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 19:59:22 +0530 |
commit | 2fb00a4f4e555c7e07927c8bdf7be858152c2ae6 (patch) | |
tree | e4b5adc70949e5373562b85739291dc1ccbc3443 | |
parent | e6ff2954b16fe8d65b43c8faaff1ac9755e1c882 (diff) |
created Dockerfile
-rw-r--r-- | Dockerfile | 19 |
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 |