ssboost commited on
Commit
c648132
·
verified ·
1 Parent(s): 272b102

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,10 +4,11 @@ FROM python:3.9-slim
4
  # 작업 디렉토리 설정
5
  WORKDIR /app
6
 
7
- # 필요한 패키지들을 설치
8
  COPY ./ /app
9
 
10
- RUN pip install -r requirements.txt
 
11
 
12
  # FastAPI 애플리케이션 실행
13
- CMD fastapi run --reload --host=0.0.0.0 --port=8000
 
4
  # 작업 디렉토리 설정
5
  WORKDIR /app
6
 
7
+ # 애플리케이션 소스 코드 복사
8
  COPY ./ /app
9
 
10
+ # 필요한 패키지들을 설치
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # FastAPI 애플리케이션 실행
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]