Harisri commited on
Commit
8e104d9
·
verified ·
1 Parent(s): e240f4d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -13,8 +13,12 @@ RUN pip install --no-cache-dir -r requirements.txt
13
  # Copy the rest of your application code into the container
14
  COPY . .
15
 
 
 
 
 
16
  # Expose the port that Hugging Face Spaces expects
17
  EXPOSE 7860
18
 
19
- # The command to run your Gunicorn server, binding to the correct host and port
20
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--worker-tmp-dir", "/dev/shm", "--timeout", "120", "app:app"]
 
13
  # Copy the rest of your application code into the container
14
  COPY . .
15
 
16
+ # --- ADD THIS LINE TO DEBUG ---
17
+ # This will test if app.py can be imported. If it fails, the build logs will show the real error.
18
+ RUN python -c "import app"
19
+
20
  # Expose the port that Hugging Face Spaces expects
21
  EXPOSE 7860
22
 
23
+ # The command to run your Gunicorn server
24
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--worker-tmp-dir", "/dev/shm", "--timeout", "120", "app:app"]