Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# ----------------------------
|
| 15 |
-
# Build zsign
|
| 16 |
# ----------------------------
|
| 17 |
RUN git clone https://github.com/zhlynn/zsign.git /opt/zsign && \
|
| 18 |
cd /opt/zsign && \
|
|
@@ -28,9 +28,6 @@ COPY . .
|
|
| 28 |
RUN pip install flask flask-cors gunicorn
|
| 29 |
|
| 30 |
# ----------------------------
|
| 31 |
-
# IMPORTANT:
|
| 32 |
# ----------------------------
|
| 33 |
-
CMD ["gunicorn", "app:app",
|
| 34 |
-
"--bind", "0.0.0.0:7860",
|
| 35 |
-
"--workers", "1",
|
| 36 |
-
"--timeout", "600"]
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# ----------------------------
|
| 15 |
+
# Build zsign (correct + reliable)
|
| 16 |
# ----------------------------
|
| 17 |
RUN git clone https://github.com/zhlynn/zsign.git /opt/zsign && \
|
| 18 |
cd /opt/zsign && \
|
|
|
|
| 28 |
RUN pip install flask flask-cors gunicorn
|
| 29 |
|
| 30 |
# ----------------------------
|
| 31 |
+
# IMPORTANT: Gunicorn config (single line only)
|
| 32 |
# ----------------------------
|
| 33 |
+
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "600"]
|
|
|
|
|
|
|
|
|