Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| # Set environment | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y build-essential | |
| # Set work directory | |
| WORKDIR /code | |
| # Install Python dependencies | |
| COPY app/requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy project | |
| COPY app . | |
| # Streamlit port and run command | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "dashboard.py", "--server.port=7860", "--server.address=0.0.0.0"] | |