gabefromsimplebit commited on
Commit
6dd2796
·
verified ·
1 Parent(s): 5a0ace6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 properly
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: fix timeout
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"]