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

Update Dockerfile

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