ssboost commited on
Commit
ff3c2c7
ยท
verified ยท
1 Parent(s): a94abd4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
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 ๋ฒ ์ด์Šค ์ด๋ฏธ์ง€ ์‚ฌ์šฉ
2
+ FROM python:3.8-slim
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", "main:app", "--host", "0.0.0.0", "--port", "8000"]