Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim-bookworm
|
| 2 |
+
USER root
|
| 3 |
+
RUN apt update && apt install curl git gcc make build-essential -y
|
| 4 |
+
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 5 |
+
WORKDIR llama.cpp
|
| 6 |
+
RUN make -ij server
|
| 7 |
+
WORKDIR llama.cpp/models
|
| 8 |
+
RUN curl -L "https://huggingface.co/iAkashPaul/gemma-7b-it-gguf/resolve/main/gemma-7b-it-Q4_0.gguf?download=true" --output gemma-7b-it-Q4_0.gguf
|
| 9 |
+
WORKDIR llama.cpp
|
| 10 |
+
EXPOSE 8080
|
| 11 |
+
CMD ./server -m ./models/gemma-7b-it-Q4_0.gguf
|