Spaces:
Runtime error
Runtime error
| # Use the lightweight python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy and install requirements first (to cache the layer) | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the actual application code | |
| COPY . . | |
| # Expose the mandatory Hugging Face port | |
| EXPOSE 7860 | |
| # Launch standard Streamlit without the virtual framebuffer bloat | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |