Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -1,23 +1,24 @@
|
|
| 1 |
# === Temel Python imajı
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# === Çalışma dizini
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# ===
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
# === Hugging Face cache dizinleri ve
|
| 12 |
-
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 13 |
|
| 14 |
ENV HF_HOME=/app/.cache \
|
| 15 |
HF_DATASETS_CACHE=/app/.cache \
|
| 16 |
HF_HUB_CACHE=/app/.cache \
|
| 17 |
TRITON_CACHE_DIR=/tmp/.triton
|
| 18 |
|
| 19 |
-
RUN mkdir -p /tmp/.triton && chmod -R 777 /tmp/.triton
|
| 20 |
-
|
| 21 |
# === Uygulama dosyaları
|
| 22 |
COPY . .
|
| 23 |
|
|
|
|
| 1 |
# === Temel Python imajı
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# === Gerekli sistem bağımlılıkları (C derleyicisi dahil)
|
| 5 |
+
RUN apt-get update && apt-get install -y gcc g++ make
|
| 6 |
+
|
| 7 |
# === Çalışma dizini
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
+
# === Python kütüphaneleri yükle
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# === Hugging Face cache dizinleri ve Triton cache dizini
|
| 15 |
+
RUN mkdir -p /app/.cache /tmp/.triton && chmod -R 777 /app/.cache /tmp/.triton
|
| 16 |
|
| 17 |
ENV HF_HOME=/app/.cache \
|
| 18 |
HF_DATASETS_CACHE=/app/.cache \
|
| 19 |
HF_HUB_CACHE=/app/.cache \
|
| 20 |
TRITON_CACHE_DIR=/tmp/.triton
|
| 21 |
|
|
|
|
|
|
|
| 22 |
# === Uygulama dosyaları
|
| 23 |
COPY . .
|
| 24 |
|