Forrest99 commited on
Commit
7b0b702
·
verified ·
1 Parent(s): 52f21e2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -18,10 +18,10 @@ RUN useradd -m appuser && \
18
  USER appuser
19
  WORKDIR /app
20
 
21
- # 安装Python依赖(全局安装)
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir --upgrade pip && \
24
- pip install --no-cache-dir gunicorn==21.2.0 && \ # 显式安装gunicorn
25
  pip install --no-cache-dir -r requirements.txt
26
 
27
  # 复制应用代码
 
18
  USER appuser
19
  WORKDIR /app
20
 
21
+ # 安装Python依赖(单条RUN指令)
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir --upgrade pip && \
24
+ pip install --no-cache-dir gunicorn==21.2.0 && \
25
  pip install --no-cache-dir -r requirements.txt
26
 
27
  # 复制应用代码