From e8b0c3ce0fdc546818417591dd8de01f5c0a222f Mon Sep 17 00:00:00 2001 From: urbnywrt Date: Thu, 14 May 2026 23:27:41 +0300 Subject: [PATCH] feat: add Python app Dockerfile and dependencies --- app/Dockerfile | 10 ++++++++++ app/pytest.ini | 2 ++ app/requirements.txt | 11 +++++++++++ app/tests/__init__.py | 0 4 files changed, 23 insertions(+) create mode 100644 app/Dockerfile create mode 100644 app/pytest.ini create mode 100644 app/requirements.txt create mode 100644 app/tests/__init__.py diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..617e0d7 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/app/pytest.ini b/app/pytest.ini new file mode 100644 index 0000000..2f4c80e --- /dev/null +++ b/app/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +asyncio_mode = auto diff --git a/app/requirements.txt b/app/requirements.txt new file mode 100644 index 0000000..73e8e7c --- /dev/null +++ b/app/requirements.txt @@ -0,0 +1,11 @@ +fastapi==0.115.5 +uvicorn[standard]==0.32.1 +sqlalchemy[asyncio]==2.0.36 +aiosqlite==0.20.0 +httpx==0.28.0 +pyyaml==6.0.2 +jinja2==3.1.4 +python-multipart==0.0.12 +pytest==8.3.3 +pytest-asyncio==0.24.0 +respx==0.21.1 diff --git a/app/tests/__init__.py b/app/tests/__init__.py new file mode 100644 index 0000000..e69de29