Spaces:
Sleeping
Sleeping
Commit ·
5abaf20
1
Parent(s): 2770973
Update Dockerfile to expose correct ports and modify Streamlit command; update README.md for app port configuration
Browse files- Dockerfile +4 -3
- README.md +1 -0
Dockerfile
CHANGED
|
@@ -29,14 +29,15 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 29 |
COPY . .
|
| 30 |
|
| 31 |
# Expose ports for Streamlit and MLflow
|
| 32 |
-
EXPOSE
|
| 33 |
EXPOSE 5000
|
| 34 |
|
| 35 |
# Set environment variables
|
| 36 |
-
ENV
|
|
|
|
| 37 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 38 |
ENV JAVA_HOME=/usr/lib/jvm/default-java
|
| 39 |
ENV PATH=$PATH:$JAVA_HOME/bin
|
| 40 |
|
| 41 |
# Command to run the application
|
| 42 |
-
CMD
|
|
|
|
| 29 |
COPY . .
|
| 30 |
|
| 31 |
# Expose ports for Streamlit and MLflow
|
| 32 |
+
EXPOSE 7860
|
| 33 |
EXPOSE 5000
|
| 34 |
|
| 35 |
# Set environment variables
|
| 36 |
+
ENV PORT=7860
|
| 37 |
+
ENV STREAMLIT_SERVER_PORT=7860
|
| 38 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 39 |
ENV JAVA_HOME=/usr/lib/jvm/default-java
|
| 40 |
ENV PATH=$PATH:$JAVA_HOME/bin
|
| 41 |
|
| 42 |
# Command to run the application
|
| 43 |
+
CMD streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT} --server.headless=true --server.enableCORS=false
|
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: Multi AutoML Interface
|
| 3 |
sdk: docker
|
|
|
|
| 4 |
emoji: 📚
|
| 5 |
colorFrom: gray
|
| 6 |
colorTo: yellow
|
|
|
|
| 1 |
---
|
| 2 |
title: Multi AutoML Interface
|
| 3 |
sdk: docker
|
| 4 |
+
app_port: 7860
|
| 5 |
emoji: 📚
|
| 6 |
colorFrom: gray
|
| 7 |
colorTo: yellow
|