Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1234512 unmodified lines18192021222324252627282930FROM python:3.10-slim# Set working directoryWORKDIR /app12 unmodified linesCOPY model/ ./model/# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Expose Streamlit default portEXPOSE 7860# Health check endpoint (adjust if needed)HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1# Start the Streamlit appCMD ["streamlit", "run", "src/cnn_app.py", "--server.port=7860", "--server.address=0.0.0.0"]12345678912 unmodified lines2223242526272829303132333435FROM python:3.10-slim# Set environment variablesENV PYTHONDONTWRITEBYTECODE=1ENV PYTHONUNBUFFERED=1# Set working directoryWORKDIR /app12 unmodified linesCOPY model/ ./model/# Install Python dependenciesRUN pip install --upgrade pipRUN pip install --no-cache-dir -r requirements.txt# Expose Streamlit default portEXPOSE 7860# Health check endpoint (adjust if needed)# HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1# Start the Streamlit appCMD ["streamlit", "run", "src/cnn_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
Dockerfile+6-1