pycache 추가
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,21 +0,0 @@
|
||||
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}"]
|
||||
Reference in New Issue
Block a user