Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files17 unmodified lines1819202122232425262717 unmodified linesUSER appuserWORKDIR /app# 安装Python依赖(全局安装)COPY requirements.txt .RUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir gunicorn==21.2.0 && \ # 显式安装gunicornpip install --no-cache-dir -r requirements.txt# 复制应用代码17 unmodified lines1819202122232425262717 unmodified linesUSER appuserWORKDIR /app# 安装Python依赖(单条RUN指令)COPY requirements.txt .RUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir gunicorn==21.2.0 && \pip install --no-cache-dir -r requirements.txt# 复制应用代码
Dockerfile+2-2