Commit
·
a637871
1
Parent(s):
a303cd3
updated app
Browse files- Dockerfile +16 -6
Dockerfile
CHANGED
@@ -38,10 +38,20 @@ WORKDIR $HOME/app
|
|
38 |
COPY . $HOME/app
|
39 |
|
40 |
# Expose a port if needed (update according to your application)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
EXPOSE 8501
|
42 |
-
|
43 |
-
CMD
|
44 |
-
|
45 |
-
|
46 |
-
--server.enableXsrfProtection false \
|
47 |
-
--server.fileWatcherType none
|
|
|
38 |
COPY . $HOME/app
|
39 |
|
40 |
# Expose a port if needed (update according to your application)
|
41 |
+
#EXPOSE 8501
|
42 |
+
#
|
43 |
+
#CMD streamlit run app.py \
|
44 |
+
# --server.headless true \
|
45 |
+
# --server.enableCORS false \
|
46 |
+
# --server.enableXsrfProtection false \
|
47 |
+
# --server.fileWatcherType none
|
48 |
+
|
49 |
+
#EXPOSE 7860
|
50 |
+
#
|
51 |
+
#CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
|
52 |
+
|
53 |
EXPOSE 8501
|
54 |
+
|
55 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
56 |
+
|
57 |
+
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|