Spaces:
Runtime error
Runtime error
File size: 461 Bytes
4a158ed 868ee3a bdbe70e 1966b3b bdbe70e 868ee3a c89cc6c 868ee3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.12-slim
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# Create a writable cache directory
RUN mkdir -p /app/hf_cache && chmod -R 777 /app/hf_cache
ENV HF_HOME=/app/hf_cache
# Set working directory and copy files
WORKDIR /app
COPY requirements.txt ./
COPY run.py ./
RUN pip3 install -r requirements.txt
ENTRYPOINT ["python3", "run.py"] |