ssboost commited on
Commit
af55a79
·
verified ·
1 Parent(s): d8178c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,11 +1,15 @@
 
1
  FROM python:3.9
2
 
3
- WORKDIR /code
 
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
 
9
  COPY . .
10
 
11
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # 베이스 이미지로 Python 3.9 사용
2
  FROM python:3.9
3
 
4
+ # 작업 디렉토리 설정
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"]