Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
@@ -19,9 +19,16 @@ ENV HF_HOME=/app/.cache \
|
|
19 |
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_cache \
|
20 |
BITSANDBYTES_NOWELCOME=1
|
21 |
|
22 |
-
# ✅
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
COPY requirements.txt .
|
24 |
-
|
|
|
25 |
|
26 |
# ✅ Kodları kopyala
|
27 |
COPY . .
|
|
|
19 |
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_cache \
|
20 |
BITSANDBYTES_NOWELCOME=1
|
21 |
|
22 |
+
# ✅ Önce pip güncelle
|
23 |
+
RUN pip install --upgrade pip
|
24 |
+
|
25 |
+
# ✅ Önce torch yükle (xformers ile uyumlu bir sürüm)
|
26 |
+
RUN pip install torch==2.1.2 --index-url https://download.pytorch.org/whl/cu118
|
27 |
+
|
28 |
+
# ✅ Sonra requirements.txt yükle
|
29 |
COPY requirements.txt .
|
30 |
+
|
31 |
+
RUN pip install -r requirements.txt
|
32 |
|
33 |
# ✅ Kodları kopyala
|
34 |
COPY . .
|