Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -14
Dockerfile
CHANGED
|
@@ -1,24 +1,18 @@
|
|
| 1 |
FROM ghcr.io/ggml-org/llama.cpp:full
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
-
# Install Python
|
| 5 |
-
|
| 6 |
-
RUN
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
|
| 11 |
-
hf_hub_download(repo_id="Qwen/Qwen2.5-Coder-14B-Instruct-GGUF", \
|
| 12 |
-
filename="qwen2.5-coder-14b-instruct-q4_k_m.gguf", local_dir="/app")'
|
| 13 |
-
|
| 14 |
-
# 2. Vision (Image Support)
|
| 15 |
-
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
|
| 16 |
-
hf_hub_download(repo_id="Qwen/Qwen2.5-VL-7B-Instruct-GGUF", \
|
| 17 |
-
filename="qwen2.5-vl-7b-instruct-q4_k_m.gguf", local_dir="/app")'
|
| 18 |
|
| 19 |
# Copy the start script
|
| 20 |
COPY start.sh /app/start.sh
|
| 21 |
RUN chmod +x /app/start.sh
|
| 22 |
|
| 23 |
-
#
|
| 24 |
ENTRYPOINT ["/app/start.sh"]
|
|
|
|
| 1 |
FROM ghcr.io/ggml-org/llama.cpp:full
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
+
# Install Python and dependencies
|
| 5 |
+
# We clean up apt lists to keep the layer small and prevent errors
|
| 6 |
+
RUN apt-get update && \
|
| 7 |
+
apt-get install -y python3 python3-pip && \
|
| 8 |
+
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Install Hugging Face Hub library
|
| 11 |
+
RUN pip3 install --no-cache-dir huggingface_hub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Copy the start script
|
| 14 |
COPY start.sh /app/start.sh
|
| 15 |
RUN chmod +x /app/start.sh
|
| 16 |
|
| 17 |
+
# Set the entrypoint
|
| 18 |
ENTRYPOINT ["/app/start.sh"]
|