Spaces:
Sleeping
Sleeping
File size: 377 Bytes
4d5c005 ea75426 4d5c005 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM python:3.9-slim
WORKDIR /code
# Create cache directory with proper permissions
ENV TRANSFORMERS_CACHE=/code/.cache/huggingface
RUN mkdir -p /code/.cache/huggingface && chmod 777 /code/.cache/huggingface
COPY ./requirements.txt /code/requirements.txt
COPY . /code
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
EXPOSE 7860
CMD ["python", "app.py"] |