alexandraroze commited on
Commit
cd90ae1
·
1 Parent(s): 2a43722

updated docker

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -26,10 +26,22 @@ RUN poetry install --no-interaction --no-ansi \
26
  && pip install --no-build-isolation flash-attn \
27
  && pip install "rerankers[all]"
28
 
 
 
 
 
 
29
  # Copy the rest of the application
30
- COPY . .
 
 
 
31
 
32
  # Expose a port if needed (update according to your application)
33
  EXPOSE 8501
34
  # Run the Streamlit app
35
- CMD ["streamlit", "run", "app.py"]
 
 
 
 
 
26
  && pip install --no-build-isolation flash-attn \
27
  && pip install "rerankers[all]"
28
 
29
+ RUN useradd -m -u 1000 user
30
+ USER user
31
+ ENV HOME /home/user
32
+ ENV PATH $HOME/.local/bin:$PATH
33
+
34
  # Copy the rest of the application
35
+ WORKDIR $HOME
36
+ RUN mkdir app
37
+ WORKDIR $HOME/app
38
+ COPY . $HOME/app
39
 
40
  # Expose a port if needed (update according to your application)
41
  EXPOSE 8501
42
  # Run the Streamlit app
43
+ CMD streamlit run app.py \
44
+ --server.headless true \
45
+ --server.enableCORS false \
46
+ --server.enableXsrfProtection false \
47
+ --server.fileWatcherType none