Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -3,11 +3,13 @@ FROM ghcr.io/ggml-org/llama.cpp:full
|
|
| 3 |
RUN apt update && apt install -y wget python3 python3-pip
|
| 4 |
RUN pip install gradio requests
|
| 5 |
|
| 6 |
-
RUN wget "https://huggingface.co/unsloth/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-Q4_0.gguf" -O /gpt-oss-20b_Q4_0.gguf
|
| 7 |
-
|
| 8 |
COPY app.py /app/app.py
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN apt update && apt install -y wget python3 python3-pip
|
| 4 |
RUN pip install gradio requests
|
| 5 |
|
|
|
|
|
|
|
| 6 |
COPY app.py /app/app.py
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
CMD ["bash", "-c", "\
|
| 10 |
+
if [ ! -f /gpt-oss-20b_Q4_0.gguf ]; then \
|
| 11 |
+
echo 'Downloading model...'; \
|
| 12 |
+
wget -q 'https://huggingface.co/unsloth/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b_Q4_0.gguf' -O /gpt-oss-20b_Q4_0.gguf; \
|
| 13 |
+
fi; \
|
| 14 |
+
llama.cpp --server -m /gpt-oss-20b_Q4_0.gguf --port 7860 --host 0.0.0.0 -n 512 & \
|
| 15 |
+
python3 /app/app.py"]
|