Spaces:
Runtime error
Runtime error
File size: 451 Bytes
0ad9aa8 bca8e6b 0ad9aa8 bca8e6b 0ad9aa8 bca8e6b 0ad9aa8 bca8e6b 0ad9aa8 bca8e6b 0ad9aa8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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"]
|