Files
llm_macro/Dockerfile
2025-10-30 10:32:31 +09:00

21 lines
485 B
Docker

FROM python:3.10-slim
WORKDIR /workspace
# 시스템 패키지 설치
RUN apt-get update && \
apt-get install -y tree curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Python 의존성 설치
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 코드 복사
COPY workspace/ ./workspace/
ENV PYTHONPATH=/workspace/workspace
# uvicorn 실행
CMD ["sh", "-c", "uvicorn workspace.api:app --workers 4 --host 0.0.0.0 --port ${PORT:-8889}"]