Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -25,14 +25,13 @@ WORKDIR $HOME/app
|
|
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 |
-
|
30 |
[server]\n\
|
31 |
headless = true\n\
|
32 |
-
port =
|
33 |
enableXsrfProtection=false\n\
|
34 |
enableCORS = false\n\
|
35 |
-
\n\
|
36 |
" > ~/.streamlit/config.toml
|
37 |
|
38 |
# Copy the rest of the application codeDocQA
|
|
|
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 |
+
echo "\
|
30 |
[server]\n\
|
31 |
headless = true\n\
|
32 |
+
port = \$PORT\n\
|
33 |
enableXsrfProtection=false\n\
|
34 |
enableCORS = false\n\
|
|
|
35 |
" > ~/.streamlit/config.toml
|
36 |
|
37 |
# Copy the rest of the application codeDocQA
|