Spaces:
Runtime error
Runtime error
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Set the cache directory environment variable | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| # Create the cache directory | |
| RUN mkdir -p /app/cache | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy your application code. | |
| COPY . . | |
| # Expose the port your app runs on. | |
| EXPOSE 8080 | |
| # Command to run your app. | |
| CMD ["python", "app.py"] | |