Spaces:
Running
Running
Update Dockerfile
Browse files- 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 && \
|
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 |
# 复制应用代码
|