Update Dockerfile
Browse files- Dockerfile +1 -10
Dockerfile
CHANGED
@@ -25,15 +25,6 @@ WORKDIR $HOME/app
|
|
25 |
COPY --chown=user requirements.txt $HOME/app
|
26 |
|
27 |
RUN pip install --no-cache-dir -r requirements.txt
|
28 |
-
ENV PORT 8501
|
29 |
-
RUN mkdir -p ~/.streamlit && \
|
30 |
-
echo "\
|
31 |
-
[server]\n\
|
32 |
-
headless = true\n\
|
33 |
-
port = \$PORT\n\
|
34 |
-
enableXsrfProtection=false\n\
|
35 |
-
enableCORS = false\n\
|
36 |
-
" > ~/.streamlit/config.toml
|
37 |
|
38 |
# Copy the rest of the application codeDocQA
|
39 |
COPY --chown=user images $HOME/app
|
@@ -52,4 +43,4 @@ EXPOSE 8501
|
|
52 |
|
53 |
# Start the application
|
54 |
# CMD ["streamlit", "run", "app.py"]
|
55 |
-
ENTRYPOINT ["streamlit", "run","app.py"]
|
|
|
25 |
COPY --chown=user requirements.txt $HOME/app
|
26 |
|
27 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
# Copy the rest of the application codeDocQA
|
30 |
COPY --chown=user images $HOME/app
|
|
|
43 |
|
44 |
# Start the application
|
45 |
# CMD ["streamlit", "run", "app.py"]
|
46 |
+
ENTRYPOINT ["streamlit", "run","app.py" ,"--server.enableXsrfProtection", "false"]
|