feat(tarot-lab): 스캐폴딩 — Dockerfile + requirements + pytest

This commit is contained in:
2026-05-25 18:18:37 +09:00
parent 677d05fc31
commit 1775f7dd2d
6 changed files with 27 additions and 0 deletions

5
tarot-lab/.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
__pycache__
*.pyc
.pytest_cache
data/
tests/

12
tarot-lab/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.12-slim-bookworm
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --timeout 600 --retries 5 -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]

View File

3
tarot-lab/pytest.ini Normal file
View File

@@ -0,0 +1,3 @@
[pytest]
asyncio_mode = auto
pythonpath = .

View File

@@ -0,0 +1,7 @@
fastapi==0.115.6
uvicorn[standard]==0.34.0
httpx>=0.27
pydantic>=2.9
pytest>=8.0
pytest-asyncio>=0.24
respx>=0.21

View File