Spaces:
Sleeping
Sleeping
File size: 495 Bytes
b19a822 bc8b111 9002506 b19a822 bc8b111 b19a822 bc8b111 b19a822 bc8b111 b19a822 bc8b111 |
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.10
# Sistem bağımlılıklarını yükle
RUN apt-get update && apt-get install -y ffmpeg
# Cache klasörünü oluştur ve izinleri ayarla
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
# Cache dizinini belirle
ENV HF_HOME=/app/cache
# Python bağımlılıklarını yükle
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# Kodları kopyala
COPY . /app
WORKDIR /app
# Uygulamayı çalıştır
CMD ["python", "app.py"]
|