Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Set environment variable for transformers cache | |
| ENV TRANSFORMERS_CACHE=/app/.cache | |
| # Create a working directory | |
| WORKDIR /app | |
| # Create the cache directory and ensure it has proper permissions | |
| RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Command to run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |