18 lines
402 B
Docker
18 lines
402 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# 의존성은 모두 wheel 제공(컴파일러 불필요) → build-essential 없이 경량 빌드.
|
|
# 의존성 먼저 설치 (레이어 캐시 활용)
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# 항상 APP_ENV=local 로 실행 → config.local.toml 사용.
|
|
ENV APP_ENV=local
|
|
|
|
EXPOSE 9500
|
|
|
|
CMD ["python", "web_main.py"]
|