File size: 399 Bytes
914d245 4ba0ff0 914d245 4ba0ff0 8f5636a 9435b5b 4ba0ff0 8f5636a b677567 4ba0ff0 914d245 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.10-slim
RUN apt-get update && apt-get install -y gcc g++ make
# Hugging Face Spaces özel dizinleri + izin
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
ENV HF_HOME=/app/.cache \
HF_DATASETS_CACHE=/app/.cache \
HF_HUB_CACHE=/app/.cache
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
CMD ["python", "app.py"]
|