Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1 unmodified line234567891051112131410 unmodified lines25262728293031323334263536373839404133424336444539461 unmodified line
WORKDIR /app
# Set HOME to a writable locationENV HOME=/appENV MPLCONFIGDIR=/app/.config/matplotlibENV TORCH_HOME=/app/.torchENV STREAMLIT_HOME=/app/.streamlit
# Install OS dependencies# Install system dependenciesRUN apt-get update && apt-get install -y \ build-essential \ curl \10 unmodified lines zlib1g-dev \ && rm -rf /var/lib/apt/lists/*
# Create required writable foldersRUN mkdir -p /app/.torch /app/.streamlit /app/.config/matplotlib
# Copy project filesCOPY requirements.txt ./COPY src/ ./src/
# Install pip packages# Install Python dependenciesRUN pip install --upgrade pip && \ pip install "numpy<2.0" && \ pip install -r requirements.txt && \ pip install torchvision==0.15.2 && \ pip install 'git+https://github.com/facebookresearch/detectron2.git'
# Expose Streamlit portEXPOSE 8501
# Health check endpointHEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Start Streamlit appENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]Dockerfile+11-5