ciyidogan commited on
Commit
13ab62e
·
verified ·
1 Parent(s): 7d67fac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -15
Dockerfile CHANGED
@@ -1,31 +1,21 @@
1
  # ✅ Temel Python imajı
2
  FROM python:3.10-slim
3
 
4
- # ✅ Sistem bağımlılıkları (git dahil!)
5
- RUN apt-get update && apt-get install -y gcc g++ make git
6
 
7
  # ✅ Çalışma dizini ve izinler
8
  WORKDIR /app
9
- RUN mkdir -p /app/.cache /tmp/.triton /tmp/torchinductor_cache && chmod -R 777 /app/.cache /tmp/.triton /tmp/torchinductor_cache
10
 
11
  # ✅ Ortam değişkenleri
12
  ENV HF_HOME=/app/.cache \
13
- HF_DATASETS_CACHE=/app/.cache \
14
- HF_HUB_CACHE=/app/.cache \
15
- TRITON_CACHE_DIR=/tmp/.triton \
16
- TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_cache
17
 
18
  # ✅ Pip güncelle
19
  RUN pip install --upgrade pip
20
 
21
- # ✅ Uyumlu Torch + pip triton yükle
22
- RUN pip install torch==2.1.2 torchvision --index-url https://download.pytorch.org/whl/cu118
23
- RUN pip install triton
24
-
25
- # ✅ Unsloth’u bağımlılıksız, doğrudan ve temiz kur
26
- RUN pip install --upgrade --force-reinstall --no-deps --no-cache-dir unsloth unsloth_zoo
27
-
28
- # ✅ Gereksinim dosyalarını yükle (diğer bağımlılıklar)
29
  COPY requirements.txt .
30
  RUN pip install -r requirements.txt
31
 
 
1
  # ✅ Temel Python imajı
2
  FROM python:3.10-slim
3
 
4
+ # ✅ Sistem bağımlılıkları
5
+ RUN apt-get update && apt-get install -y git gcc g++ make
6
 
7
  # ✅ Çalışma dizini ve izinler
8
  WORKDIR /app
9
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
10
 
11
  # ✅ Ortam değişkenleri
12
  ENV HF_HOME=/app/.cache \
13
+ HF_HUB_CACHE=/app/.cache
 
 
 
14
 
15
  # ✅ Pip güncelle
16
  RUN pip install --upgrade pip
17
 
18
+ # ✅ Gereksinim dosyalarını yükle
 
 
 
 
 
 
 
19
  COPY requirements.txt .
20
  RUN pip install -r requirements.txt
21