test-oncu / Dockerfile
ciyidogan's picture
Update Dockerfile
04776a3 verified
raw
history blame
550 Bytes
# ✅ Temel Python imajı
FROM python:3.10-slim
# ✅ Sistem bağımlılıkları
RUN apt-get update && apt-get install -y gcc g++ make
# ✅ Hugging Face Spaces özel dizinleri
RUN mkdir -p /app/.cache && chmod -R 777 /app
ENV HF_HOME=/app/.cache \
HF_DATASETS_CACHE=/app/.cache \
HF_HUB_CACHE=/app/.cache
# ✅ Çalışma dizini
WORKDIR /app
# ✅ Gereksinimler
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ✅ Uygulama dosyası
COPY test_server.py .
# ✅ Uygulamayı başlat
CMD ["python", "app.py"]