Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files123456FROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]1234567891011121314151617181920212223242526FROM python:3.11-slimWORKDIR /app# Copy requirements first for better cachingCOPY requirements.txt .# Install system dependencies if neededRUN apt-get update && apt-get install -y \build-essential \&& rm -rf /var/lib/apt/lists/*# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Copy the rest of the applicationCOPY . .# Expose the portEXPOSE 8501# Health checkHEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health# Run the applicationCMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
Dockerfile+21-1