Hassan Ali Khan commited on
Commit
bdea1dc
·
1 Parent(s): ee01bda
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -31,4 +31,5 @@ ENV PORT=7860
31
  EXPOSE 7860
32
 
33
  # start Chainlit
34
- CMD ["uv", "run", "chainlit", "run", "src/study_chatbot/app.py", "--host", "0.0.0.0", "--port", "${PORT}"]
 
 
31
  EXPOSE 7860
32
 
33
  # start Chainlit
34
+ # replace the previous CMD with this
35
+ CMD ["bash", "-lc", "export CHAINLIT_PORT=${PORT:-7860}; uv run chainlit run src/study_chatbot/app.py --host 0.0.0.0 --port ${PORT:-7860}"]