Spaces:
Runtime error
Runtime error
File size: 451 Bytes
042ec80 8a7f9a5 042ec80 33a8d6f 8a7f9a5 042ec80 8a7f9a5 042ec80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.9-slim
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
# Set environment variables
ENV TRANSFORMERS_CACHE=/app/cache
ENV MPLCONFIGDIR=/app/matplotlib
# Create necessary directories
RUN mkdir -p /app/cache /app/matplotlib
EXPOSE 5000
CMD ["python", "app.py"] |