Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
|
@@ -49,8 +49,6 @@ COPY --from=frontend-builder /app/requirements.txt .
|
|
| 49 |
# 安装 Python 依赖
|
| 50 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 51 |
|
| 52 |
-
# 显式安装 gunicorn
|
| 53 |
-
RUN pip install --no-cache-dir gunicorn==22.0.0
|
| 54 |
|
| 55 |
# 安装 huggingface_hub
|
| 56 |
RUN pip install --no-cache-dir huggingface_hub
|
|
@@ -76,5 +74,4 @@ USER appuser
|
|
| 76 |
# 暴露端口 5000
|
| 77 |
EXPOSE 5000
|
| 78 |
|
| 79 |
-
|
| 80 |
-
CMD ["gunicorn", "--bind=0.0.0.0:5000", "--workers=1", "--threads=4", "run:app"]
|
|
|
|
| 49 |
# 安装 Python 依赖
|
| 50 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 51 |
|
|
|
|
|
|
|
| 52 |
|
| 53 |
# 安装 huggingface_hub
|
| 54 |
RUN pip install --no-cache-dir huggingface_hub
|
|
|
|
| 74 |
# 暴露端口 5000
|
| 75 |
EXPOSE 5000
|
| 76 |
|
| 77 |
+
CMD ["python", "run.py"]
|
|
|