feat(saju-lab): 스캐폴딩 — Dockerfile + requirements + 디렉토리 구조
This commit is contained in:
5
saju-lab/.dockerignore
Normal file
5
saju-lab/.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
__pycache__
|
||||
*.pyc
|
||||
.pytest_cache
|
||||
data/
|
||||
tests/
|
||||
12
saju-lab/Dockerfile
Normal file
12
saju-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
saju-lab/app/__init__.py
Normal file
0
saju-lab/app/__init__.py
Normal file
0
saju-lab/app/calculator/__init__.py
Normal file
0
saju-lab/app/calculator/__init__.py
Normal file
0
saju-lab/app/interpret/__init__.py
Normal file
0
saju-lab/app/interpret/__init__.py
Normal file
0
saju-lab/app/routers/__init__.py
Normal file
0
saju-lab/app/routers/__init__.py
Normal file
3
saju-lab/pytest.ini
Normal file
3
saju-lab/pytest.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[pytest]
|
||||
asyncio_mode = auto
|
||||
pythonpath = .
|
||||
8
saju-lab/requirements.txt
Normal file
8
saju-lab/requirements.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
fastapi==0.115.6
|
||||
uvicorn[standard]==0.34.0
|
||||
httpx>=0.27
|
||||
pydantic>=2.9
|
||||
sxtwl>=2.0
|
||||
pytest>=8.0
|
||||
pytest-asyncio>=0.24
|
||||
respx>=0.21
|
||||
0
saju-lab/tests/__init__.py
Normal file
0
saju-lab/tests/__init__.py
Normal file
0
saju-lab/tests/fixtures/__init__.py
vendored
Normal file
0
saju-lab/tests/fixtures/__init__.py
vendored
Normal file
Reference in New Issue
Block a user