test-oncu / Dockerfile
ciyidogan's picture
Update Dockerfile
8f5636a verified
raw
history blame
838 Bytes
# === Temel Python imajı
FROM python:3.10-slim
# === Sistem bağımlılıkları (C derleyicisi + bazı temel lib'ler)
RUN apt-get update && apt-get install -y gcc g++ make
# === Çalışma dizini ve izinler
WORKDIR /app
RUN mkdir -p /app/.cache /tmp/.triton /tmp/torchinductor_cache && chmod -R 777 /app/.cache /tmp/.triton /tmp/torchinductor_cache
# === Ortam değişkenleri
ENV HF_HOME=/app/.cache \
HF_DATASETS_CACHE=/app/.cache \
HF_HUB_CACHE=/app/.cache \
TRITON_CACHE_DIR=/tmp/.triton \
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_cache
# === Gereksinimler
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# === Triton ve bitsandbytes eklemeleri
RUN pip install --no-cache-dir triton bitsandbytes
# === Uygulama dosyaları
COPY app.py .
# === Çalıştırma
CMD ["python", "app.py"]