leonsimon23 commited on
Commit
7d30dc0
·
verified ·
1 Parent(s): b3fb19b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,18 +1,19 @@
1
  # 使用官方Python基础镜像
2
  FROM python:3.9-slim
3
 
 
 
 
4
  # 设置工作目录
5
  WORKDIR /app
6
 
7
- # 复制requirements文件到容器
8
- COPY requirements.txt .
 
9
 
10
- # 安装项目依赖
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # 复制项目文件到容器
14
- COPY . .
15
-
16
  # 暴露Streamlit默认端口
17
  EXPOSE 8501
18
 
 
1
  # 使用官方Python基础镜像
2
  FROM python:3.9-slim
3
 
4
+ # 安装git
5
+ RUN apt-get update && apt-get install -y git
6
+
7
  # 设置工作目录
8
  WORKDIR /app
9
 
10
+ # 克隆GitHub仓库
11
+ # 注意:替换下面的仓库URL为你的实际仓库地址
12
+ RUN git clone https://github.com/yourusername/your-repo.git .
13
 
14
+ # 安装依赖
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
 
 
17
  # 暴露Streamlit默认端口
18
  EXPOSE 8501
19