Spaces:
Sleeping
Sleeping
sakshamlakhera
commited on
Commit
·
eb6667d
1
Parent(s):
e15f1e8
docker fix cache3
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -24,12 +24,14 @@ COPY . .
|
|
24 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
25 |
|
26 |
# Expose Streamlit port
|
27 |
-
EXPOSE
|
28 |
|
29 |
# Add health check for Docker
|
30 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
31 |
|
32 |
-
|
|
|
|
|
33 |
|
34 |
# Run Streamlit
|
35 |
-
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=
|
|
|
24 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
25 |
|
26 |
# Expose Streamlit port
|
27 |
+
EXPOSE 7860
|
28 |
|
29 |
# Add health check for Docker
|
30 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
31 |
|
32 |
+
ENV STREAMLIT_SERVER_ENABLECORS=false
|
33 |
+
ENV STREAMLIT_SERVER_HEADLESS=true
|
34 |
+
ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
|
35 |
|
36 |
# Run Streamlit
|
37 |
+
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=7860", "--server.address=0.0.0.0"]
|