From b46c8351dfacceded0a673ef37ea5f137fc551c4 Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Sun, 24 May 2026 04:48:27 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20dockerfile=20backend=20et=20d=C3=A9pen?= =?UTF-8?q?dances=20python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 14 ++++++++++++++ backend/pytest.ini | 3 +++ backend/requirements.txt | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 backend/Dockerfile create mode 100644 backend/pytest.ini create mode 100644 backend/requirements.txt diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..35ab1ce --- /dev/null +++ b/backend/Dockerfile @@ -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"] diff --git a/backend/pytest.ini b/backend/pytest.ini new file mode 100644 index 0000000..78c5011 --- /dev/null +++ b/backend/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +asyncio_mode = auto +testpaths = tests diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..5c06f36 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,11 @@ +fastapi==0.115.5 +uvicorn[standard]==0.32.1 +sqlalchemy[asyncio]==2.0.36 +asyncpg==0.30.0 +alembic==1.14.0 +pydantic-settings==2.6.1 +pillow==11.1.0 +python-multipart==0.0.20 +httpx==0.28.0 +pytest==8.3.4 +pytest-asyncio==0.24.0