Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /code | |
| # Install git (required for pip installing from github) | |
| RUN apt-get update && apt-get install -y git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose the port for Streamlit | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] |