From a4b760ded0ec34fbb84fc2ec53d0edcf6955b754 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 19 Nov 2022 14:09:11 +0100 Subject: [PATCH] Add Containerfile --- .containerignore | 1 + Containerfile | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .containerignore create mode 100644 Containerfile diff --git a/.containerignore b/.containerignore new file mode 100644 index 0000000..8d98f9d --- /dev/null +++ b/.containerignore @@ -0,0 +1 @@ +.* diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..caf8f90 --- /dev/null +++ b/Containerfile @@ -0,0 +1,11 @@ +FROM docker.io/library/python:3.11-slim + +COPY . /volumes/repo + +WORKDIR /volumes/repo + +RUN pip3 install -r requirements.txt + +EXPOSE 80 + +CMD ["gunicorn", "--bind", "0.0.0.0:80", "--workers", "5", "--log-file", "/volumes/logs/gunicorn.log", "'run:create_app()'"] \ No newline at end of file