clash-linux commited on
Commit
6ff70f0
·
verified ·
1 Parent(s): 876b43a

Upload 52 files

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -2,15 +2,14 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # 安装 unzip 工具
6
- RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
7
 
8
- COPY app.zip .
 
9
  COPY requirements.txt .
10
  COPY version.txt .
11
- RUN mkdir -p app
12
- # 解压 app.zip 文件
13
- RUN unzip app.zip -d app && rm app.zip
14
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # 安装 unzip 工具 (不再需要,因为我们不解压了)
6
+ # RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
7
 
8
+ # 复制项目文件
9
+ COPY app/ ./app
10
  COPY requirements.txt .
11
  COPY version.txt .
12
+ # RUN mkdir -p app # 不再需要,COPY 指令会自动创建目标目录
 
 
13
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15