test-oncu / Dockerfile
ciyidogan's picture
Update Dockerfile
13ab62e verified
raw
history blame
586 Bytes
# ✅ Temel Python imajı
FROM python:3.10-slim
# ✅ Sistem bağımlılıkları
RUN apt-get update && apt-get install -y git gcc g++ make
# ✅ Çalışma dizini ve izinler
WORKDIR /app
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
# ✅ Ortam değişkenleri
ENV HF_HOME=/app/.cache \
HF_HUB_CACHE=/app/.cache
# ✅ Pip güncelle
RUN pip install --upgrade pip
# ✅ Gereksinim dosyalarını yükle
COPY requirements.txt .
RUN pip install -r requirements.txt
# ✅ Uygulama dosyalarını kopyala
COPY app.py .
# ✅ FastAPI uygulaması burada
CMD ["python", "app.py"]