diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6c0b01 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index ad09cc7..3cb863d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.1.0" description = "Simple fridge tracking web app" 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] line-length = 120