Divytak commited on
Commit
895e6ba
·
verified ·
1 Parent(s): 6f81f13

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -42,8 +42,8 @@ COPY src/BrainIAC/hdbet_model /app/BrainIAC/hdbet_model
42
  # Copy the model checkpoint
43
  COPY src/BrainIAC/checkpoints/brainage_model_latest.pt /app/BrainIAC/checkpoints/brainage_model_latest.pt
44
 
45
- # Make port 5000 available
46
- EXPOSE 5000
47
 
48
- # Run app.py when the container launches using gunicorn
49
- CMD ["gunicorn", "--chdir", "/app/BrainIAC", "--bind", "0.0.0.0:5000", "--timeout", "600", "app:app"]
 
42
  # Copy the model checkpoint
43
  COPY src/BrainIAC/checkpoints/brainage_model_latest.pt /app/BrainIAC/checkpoints/brainage_model_latest.pt
44
 
45
+ # Make port 7860 available (for Gradio)
46
+ EXPOSE 7860
47
 
48
+ # Run app_gradio.py when the container launches using python
49
+ CMD ["python", "/app/BrainIAC/app_gradio.py"]