BlueSkyXN commited on
Commit
bdaf5db
·
1 Parent(s): 91b5bcf
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -5,10 +5,13 @@ FROM jbarlow83/ocrmypdf-alpine:latest
5
  ENV PORT=8000
6
  ENV PYTHONUNBUFFERED=1
7
 
 
 
 
8
  # 安装Python依赖
9
  WORKDIR /app
10
  COPY requirements.txt .
11
- RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # 复制应用代码和启动脚本
14
  COPY main.py .
 
5
  ENV PORT=8000
6
  ENV PYTHONUNBUFFERED=1
7
 
8
+ # 安装Python和pip
9
+ RUN apk add --no-cache python3 py3-pip
10
+
11
  # 安装Python依赖
12
  WORKDIR /app
13
  COPY requirements.txt .
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
15
 
16
  # 复制应用代码和启动脚本
17
  COPY main.py .