NexusInstruments commited on
Commit
537d660
·
verified ·
1 Parent(s): b636b92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -18,7 +18,7 @@ WORKDIR /app
18
  COPY --chown=user requirements.txt requirements.txt
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # ─── Install Package in Editable Mode ─────────────────────────
22
  COPY --chown=user . /app
23
  RUN pip install -e .
24
 
@@ -34,11 +34,11 @@ ENV APP_MODE=streamlit
34
 
35
  # ─── Entrypoint ───────────────────────────────────────────────
36
  CMD if [ "$APP_MODE" = "streamlit" ]; then \
37
- streamlit run app.py --server.port=7860 --server.address=0.0.0.0; \
38
  elif [ "$APP_MODE" = "gradio" ]; then \
39
- python gradio_app.py; \
40
  elif [ "$APP_MODE" = "chainlit" ]; then \
41
- chainlit run chainlit_app.py --host 0.0.0.0 --port 8000; \
42
  else \
43
- echo "Unknown APP_MODE: $APP_MODE" && exit 1; \
44
  fi
 
18
  COPY --chown=user requirements.txt requirements.txt
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # ─── Copy Project and Install Package ─────────────────────────
22
  COPY --chown=user . /app
23
  RUN pip install -e .
24
 
 
34
 
35
  # ─── Entrypoint ───────────────────────────────────────────────
36
  CMD if [ "$APP_MODE" = "streamlit" ]; then \
37
+ streamlit run omniscientframework/app.py --server.port=7860 --server.address=0.0.0.0; \
38
  elif [ "$APP_MODE" = "gradio" ]; then \
39
+ python omniscientframework/gradio_app.py; \
40
  elif [ "$APP_MODE" = "chainlit" ]; then \
41
+ chainlit run omniscientframework/chainlit_app.py --host 0.0.0.0 --port 8000; \
42
  else \
43
+ echo "Unknown APP_MODE: $APP_MODE" && exit 1; \
44
  fi