benjamin5607 commited on
Commit
70d7506
ยท
verified ยท
1 Parent(s): 736ca67

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -2,11 +2,20 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
 
10
  EXPOSE 7860
11
 
12
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # ์บ์‹œ ๋ฌธ์ œ ๋ฐฉ์ง€๋ฅผ ์œ„ํ•œ ์—…๊ทธ๋ ˆ์ด๋“œ
6
+ RUN pip install --upgrade pip
7
+
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY . .
12
 
13
+ # ํ—ˆ๊น…ํŽ˜์ด์Šค๋Š” ๋ฌด์กฐ๊ฑด 7860 ํฌํŠธ๋ฅผ ์”๋‹ˆ๋‹ค
14
  EXPOSE 7860
15
 
16
+ # ํ•ต์‹ฌ: ํฌํŠธ ๊ฐ•์ œ ์ง€์ • + ๋ณด์•ˆ ์„ค์ •(CORS) ํ•ด์ œ
17
+ CMD ["streamlit", "run", "app.py", \
18
+ "--server.address=0.0.0.0", \
19
+ "--server.port=7860", \
20
+ "--server.enableCORS=false", \
21
+ "--server.enableXsrfProtection=false"]