Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12 unmodified lines131415161718192012 unmodified linesRUN pip3 install -r requirements.txtEXPOSE 8501HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/healthENTRYPOINT ["streamlit", "run", "src/image_classifier_app.py", "--server.port=8501", "--server.address=0.0.0.0"]12 unmodified lines131415161718192021222312 unmodified linesRUN pip3 install -r requirements.txt# Change EXPOSE to 7860EXPOSE 7860# Update HEALTHCHECK to use 7860HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health# Add the XSRF and CORS disable flags to ENTRYPOINTENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
Dockerfile+6-3