AlaBoussoffara commited on
Commit
7c31e8f
·
1 Parent(s): 8dae949

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -28,7 +28,8 @@ RUN python -m pip install --upgrade pip setuptools wheel
28
  RUN if [ -f /home/user/app/requirements.txt ]; then \
29
  pip install -r /home/user/app/requirements.txt; \
30
  else \
31
- pip install .[server]; \
 
32
  fi
33
 
34
  # Switch to non-root user
@@ -38,7 +39,6 @@ ENV XDG_CACHE_HOME=/home/user/app/.cache
38
  ENV XDG_CONFIG_HOME=/home/user/app/.config
39
  ENV XDG_DATA_HOME=/home/user/app/.local/share
40
  ENV CHAINLIT_FILES_DIR=/home/user/app/.files
41
- RUN pip install -e .[dev]
42
 
43
  EXPOSE 7860
44
 
 
28
  RUN if [ -f /home/user/app/requirements.txt ]; then \
29
  pip install -r /home/user/app/requirements.txt; \
30
  else \
31
+ # Install the project in editable mode so sources are available at runtime
32
+ pip install -e .[server]; \
33
  fi
34
 
35
  # Switch to non-root user
 
39
  ENV XDG_CONFIG_HOME=/home/user/app/.config
40
  ENV XDG_DATA_HOME=/home/user/app/.local/share
41
  ENV CHAINLIT_FILES_DIR=/home/user/app/.files
 
42
 
43
  EXPOSE 7860
44