feat: add Python app Dockerfile and dependencies
This commit is contained in:
@@ -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"]
|
||||
@@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
asyncio_mode = auto
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user