feat: Docker setup
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user