Skip to content

Commit 38052cb

Browse files
committed
dockerfile_modification
1 parent 782e26c commit 38052cb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ FROM python:3.10-slim
44
# 작업 디렉토리 설정
55
WORKDIR /app
66

7+
# 시스템 의존성 설치
78
RUN apt-get update && apt-get install -y \
89
gcc \
910
&& rm -rf /var/lib/apt/lists/*
1011

11-
# 의존성 파일 복사 및 설치
12+
# requirements.txt 복사 및 설치
1213
COPY requirements.txt .
13-
RUN pip install --no-cache-dir -r requirements.txt
14+
RUN pip install --no-cache-dir --upgrade pip && \
15+
pip install --no-cache-dir -r requirements.txt
1416

1517
# 애플리케이션 코드 복사
1618
COPY . .
1719

18-
# 포트 노출 (예: Flask/FastAPI 등)
1920
EXPOSE 8000
2021

21-
# 실행 명령
22-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
23-
24-
22+
# uvicorn으로 실행
23+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)