Update Dockerfile
Browse files- Dockerfile +37 -6
Dockerfile
CHANGED
|
@@ -10,23 +10,54 @@ RUN apt-get update && \
|
|
| 10 |
python3-venv && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
# Python
|
| 14 |
RUN python3 -m venv /opt/venv
|
| 15 |
ENV PATH="/opt/venv/bin:${PATH}"
|
| 16 |
|
| 17 |
# Install Hugging Face Hub
|
| 18 |
RUN pip install --no-cache-dir --upgrade pip huggingface_hub
|
| 19 |
|
| 20 |
-
# Download
|
| 21 |
RUN python3 - <<'PY'
|
| 22 |
from huggingface_hub import hf_hub_download
|
| 23 |
|
| 24 |
hf_hub_download(
|
| 25 |
-
repo_id="
|
| 26 |
-
filename="
|
| 27 |
local_dir="/app"
|
| 28 |
)
|
| 29 |
PY
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
python3-venv && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Python virtual environment
|
| 14 |
RUN python3 -m venv /opt/venv
|
| 15 |
ENV PATH="/opt/venv/bin:${PATH}"
|
| 16 |
|
| 17 |
# Install Hugging Face Hub
|
| 18 |
RUN pip install --no-cache-dir --upgrade pip huggingface_hub
|
| 19 |
|
| 20 |
+
# Download DeepSeek Coder V2 Lite Instruct GGUF
|
| 21 |
RUN python3 - <<'PY'
|
| 22 |
from huggingface_hub import hf_hub_download
|
| 23 |
|
| 24 |
hf_hub_download(
|
| 25 |
+
repo_id="bartowski/DeepSeek-Coder-V2-Lite-Instruct-GGUF",
|
| 26 |
+
filename="DeepSeek-Coder-V2-Lite-Instruct-Q4_K_M.gguf",
|
| 27 |
local_dir="/app"
|
| 28 |
)
|
| 29 |
PY
|
| 30 |
|
| 31 |
+
CMD [
|
| 32 |
+
"--server",
|
| 33 |
+
|
| 34 |
+
"-m",
|
| 35 |
+
"/app/DeepSeek-Coder-V2-Lite-Instruct-Q4_K_M.gguf",
|
| 36 |
+
|
| 37 |
+
"--host",
|
| 38 |
+
"0.0.0.0",
|
| 39 |
+
|
| 40 |
+
"--port",
|
| 41 |
+
"7860",
|
| 42 |
+
|
| 43 |
+
"-t",
|
| 44 |
+
"4",
|
| 45 |
+
|
| 46 |
+
"-b",
|
| 47 |
+
"1024",
|
| 48 |
+
|
| 49 |
+
"-c",
|
| 50 |
+
"16384",
|
| 51 |
+
|
| 52 |
+
"-n",
|
| 53 |
+
"4096",
|
| 54 |
+
|
| 55 |
+
"--parallel",
|
| 56 |
+
"1",
|
| 57 |
+
|
| 58 |
+
"--cache-type-k",
|
| 59 |
+
"q8_0",
|
| 60 |
+
|
| 61 |
+
"--cache-type-v",
|
| 62 |
+
"q8_0"
|
| 63 |
+
]
|