chore: dockerfile backend et dépendances python

This commit is contained in:
2026-05-24 04:48:27 +02:00
parent 8bc69bb705
commit b46c8351df
3 changed files with 28 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libpq-dev gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]