Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -51,14 +51,14 @@ RUN pip3 install -r requirements.txt
|
|
| 51 |
|
| 52 |
# Set environment variables for Streamlit
|
| 53 |
ENV STREAMLIT_SERVER_HEADLESS=true
|
| 54 |
-
ENV STREAMLIT_SERVER_PORT=
|
| 55 |
ENV STREAMLIT_SERVER_ENABLE_CORS=false
|
| 56 |
ENV ES_HOST=localhost
|
| 57 |
ENV ES_PORT=9200
|
| 58 |
ENV ELASTICSEARCH_HOSTS="http://localhost:9200"
|
| 59 |
|
| 60 |
# Expose required ports (Elasticsearch and Streamlit)
|
| 61 |
-
EXPOSE 9200
|
| 62 |
|
| 63 |
# Switch to non-root user
|
| 64 |
USER appuser
|
|
|
|
| 51 |
|
| 52 |
# Set environment variables for Streamlit
|
| 53 |
ENV STREAMLIT_SERVER_HEADLESS=true
|
| 54 |
+
ENV STREAMLIT_SERVER_PORT=7860
|
| 55 |
ENV STREAMLIT_SERVER_ENABLE_CORS=false
|
| 56 |
ENV ES_HOST=localhost
|
| 57 |
ENV ES_PORT=9200
|
| 58 |
ENV ELASTICSEARCH_HOSTS="http://localhost:9200"
|
| 59 |
|
| 60 |
# Expose required ports (Elasticsearch and Streamlit)
|
| 61 |
+
EXPOSE 9200 7860
|
| 62 |
|
| 63 |
# Switch to non-root user
|
| 64 |
USER appuser
|