feat: Docker setup

This commit is contained in:
2026-04-09 14:25:30 +01:00
parent 8c3c473ebf
commit c4790cf2bc
2 changed files with 12 additions and 1 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM python:3.14-alpine
WORKDIR /fridge
COPY app/ app
COPY pyproject.toml .
RUN pip install .
EXPOSE 8000
ENTRYPOINT ["gunicorn", "app.main:app", "--bind", "0.0.0.0:8000", "--workers", "1"]

View File

@@ -8,7 +8,7 @@ version = "0.1.0"
description = "Simple fridge tracking web app" description = "Simple fridge tracking web app"
requires-python = ">=3.11" requires-python = ">=3.11"
dependencies = [ "flask>=3.0.0", "sqlalchemy>=2.0.0", "qrcode[pil]>=7.4.2" ] dependencies = [ "flask>=3.0.0", "sqlalchemy>=2.0.0", "qrcode[pil]>=7.4.2", "gunicorn" ]
[tool.ruff] [tool.ruff]
line-length = 120 line-length = 120