Spaces:
Sleeping
Sleeping
FROM python:3.10 | |
# Sistem bağımlılıklarını yükle | |
COPY apt.txt /app/apt.txt | |
RUN apt-get update && xargs -a /app/apt.txt apt-get install -y | |
# Cache klasörü oluştur | |
RUN mkdir -p /app/cache | |
# Ortam değişkenlerini ayarla | |
ENV TRANSFORMERS_CACHE=/app/cache | |
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 | |
# Flask'ı çalıştır | |
CMD ["python", "app.py"] | |