diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d7983d4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +__pycache__/ +venv/ +.woodpecker/ +Dockerfile +.git +.gitignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad6e557 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.10-alpine +COPY requirements.txt / +RUN pip3 install -r /requirements.txt + +COPY . /app +WORKDIR /app + +ENTRYPOINT ["./gunicorn.sh"] \ No newline at end of file diff --git a/gunicorn.sh b/gunicorn.sh new file mode 100644 index 0000000..5a57dd1 --- /dev/null +++ b/gunicorn.sh @@ -0,0 +1,2 @@ +#!/bin/sh +gunicorn --chdir app wsgi:app -w 2 --threads 2 -b 0.0.0.0:80 \ No newline at end of file