feat(tarot-lab): 스캐폴딩 — Dockerfile + requirements + pytest
This commit is contained in:
5
tarot-lab/.dockerignore
Normal file
5
tarot-lab/.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
|
.pytest_cache
|
||||||
|
data/
|
||||||
|
tests/
|
||||||
12
tarot-lab/Dockerfile
Normal file
12
tarot-lab/Dockerfile
Normal 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"]
|
||||||
0
tarot-lab/app/__init__.py
Normal file
0
tarot-lab/app/__init__.py
Normal file
3
tarot-lab/pytest.ini
Normal file
3
tarot-lab/pytest.ini
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[pytest]
|
||||||
|
asyncio_mode = auto
|
||||||
|
pythonpath = .
|
||||||
7
tarot-lab/requirements.txt
Normal file
7
tarot-lab/requirements.txt
Normal 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
|
||||||
0
tarot-lab/tests/__init__.py
Normal file
0
tarot-lab/tests/__init__.py
Normal file
Reference in New Issue
Block a user