chandan06 commited on
Commit
10e3225
1 Parent(s): 0e7ef65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
11
  && apt-get clean
12
  RUN apt-get install poppler-utils -y
13
 
 
14
  RUN pip3 install torch --index-url https://download.pytorch.org/whl/cu121
15
  RUN useradd -m -u 1000 user
16
 
@@ -24,6 +25,15 @@ WORKDIR $HOME/app
24
  COPY --chown=user requirements.txt $HOME/app
25
 
26
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
 
 
 
 
27
 
28
  # Copy the rest of the application codeDocQA
29
  COPY --chown=user images $HOME/app
 
11
  && apt-get clean
12
  RUN apt-get install poppler-utils -y
13
 
14
+
15
  RUN pip3 install torch --index-url https://download.pytorch.org/whl/cu121
16
  RUN useradd -m -u 1000 user
17
 
 
25
  COPY --chown=user requirements.txt $HOME/app
26
 
27
  RUN pip install --no-cache-dir -r requirements.txt
28
+ RUN mkdir -p ~/.streamlit/
29
+ RUN echo "\
30
+ [server]\n\
31
+ headless = true\n\
32
+ port = $PORT\n\
33
+ enableXsrfProtection=false\n\
34
+ enableCORS = false\n\
35
+ \n\
36
+ " > ~/.streamlit/config.toml
37
 
38
  # Copy the rest of the application codeDocQA
39
  COPY --chown=user images $HOME/app