lugiiing commited on
Commit
c7360b0
ยท
verified ยท
1 Parent(s): 93e7ed8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim-bullseye
2
 
3
- # ์‹œ์Šคํ…œ ํŒจํ‚ค์ง€ ์„ค์น˜ (libgl1-mesa-glx๋Š” ๋„ฃ์ง€ ์•Š์Šต๋‹ˆ๋‹ค)
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  git-lfs \
@@ -18,14 +18,9 @@ WORKDIR /home/user/app
18
  # ์ฝ”๋“œ ๋ณต์‚ฌ
19
  COPY . .
20
 
21
- # ํŒŒ์ด์ฌ ์˜์กด์„ฑ ์„ค์น˜
22
- # (requirements.txt + Hugging Face ๊ธฐ๋ณธ์—์„œ ์“ฐ๋˜ streamlit, spaces, uvicorn)
23
  RUN pip install --no-cache-dir --upgrade pip && \
24
- pip install --no-cache-dir -r requirements.txt && \
25
- pip install --no-cache-dir \
26
- streamlit==1.21.0 \
27
- "uvicorn>=0.14.0" \
28
- spaces
29
 
30
  # Streamlit ์•ฑ ์‹คํ–‰
31
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
  FROM python:3.10-slim-bullseye
2
 
3
+ # ์‹œ์Šคํ…œ ํŒจํ‚ค์ง€ ์„ค์น˜ (ํ•„์š”ํ•œ ๊ฒƒ๋งŒ)
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  git-lfs \
 
18
  # ์ฝ”๋“œ ๋ณต์‚ฌ
19
  COPY . .
20
 
21
+ # ํŒŒ์ด์ฌ ์˜์กด์„ฑ ์„ค์น˜ (requirements.txt์— ๋ชจ๋“ ๊ฑธ ๋‹ค ์ ์–ด๋‘”๋‹ค)
 
22
  RUN pip install --no-cache-dir --upgrade pip && \
23
+ pip install --no-cache-dir -r requirements.txt
 
 
 
 
24
 
25
  # Streamlit ์•ฑ ์‹คํ–‰
26
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]