diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ac7aea0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git/ +.github/ +.idea/ +.venv/ +shell.nix +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..657f931 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.11-slim + +WORKDIR /app + +COPY . . + +RUN pip install --no-cache-dir -r dependencies.txt + +ENV FLASK_ENV=production +ENV PYTHONUNBUFFERED=1 + +CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--workers", "1"]