ElvisWang111 commited on
Commit
1002a93
·
verified ·
1 Parent(s): 26aa970

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -6,17 +6,15 @@ WORKDIR /app
6
 
7
  # ========= 安装依赖 =========
8
  # 先复制 requirements.txt 再安装,避免频繁重建层
9
- COPY --chown=user ./requirements.txt ./requirements.txt
10
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
11
  && pip install --no-cache-dir -r requirements.txt
12
 
13
  # ========= 拷贝项目文件 =========
14
- COPY --chown=user . /tmp
15
 
16
  # ========= 暴露 Streamlit 端口 =========
17
  EXPOSE 7860
18
 
19
  # ========= 启动命令 =========
20
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
21
-
22
-
 
6
 
7
  # ========= 安装依赖 =========
8
  # 先复制 requirements.txt 再安装,避免频繁重建层
9
+ COPY ./requirements.txt ./requirements.txt
10
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
11
  && pip install --no-cache-dir -r requirements.txt
12
 
13
  # ========= 拷贝项目文件 =========
14
+ COPY . /app
15
 
16
  # ========= 暴露 Streamlit 端口 =========
17
  EXPOSE 7860
18
 
19
  # ========= 启动命令 =========
20
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]