Spaces:
Runtime error
Runtime error
FROM python:3.9-slim | |
# Set working directory inside the container | |
WORKDIR /app | |
# Set the TRANSFORMERS_CACHE environment variable to a writable directory | |
ENV TRANSFORMERS_CACHE=/app/cache | |
# Copy the contents of your local directory to the working directory in the container | |
COPY . . | |
# Install dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose port 8080 for your app | |
EXPOSE 8080 | |
# Run the Flask app | |
CMD ["python", "app.py"] | |