phenixrhyder commited on
Commit
407a4cb
·
unverified ·
1 Parent(s): 0e3ebfc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -16,6 +16,6 @@ COPY . /code/
16
  # Make port 7860 available to the world outside this container
17
  EXPOSE 7860
18
 
19
- # --- THIS IS THE CORRECTED LINE ---
20
- # Run app.py when the container launches using the full path to gunicorn
21
- CMD ["/usr/local/bin/gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
16
  # Make port 7860 available to the world outside this container
17
  EXPOSE 7860
18
 
19
+ # --- THE FINAL FIX ---
20
+ # Run gunicorn as a Python module to avoid PATH issues
21
+ CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "app:app"]