Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
-
FROM
|
2 |
ARG MODEL
|
3 |
ARG MODEL_NAME
|
4 |
ARG ADDITIONAL
|
5 |
RUN mkdir /opt/koboldcpp
|
6 |
-
RUN apt update && apt install
|
7 |
-
RUN git clone https://github.com/lostruins/koboldcpp /opt/koboldcpp
|
8 |
WORKDIR /opt/koboldcpp
|
9 |
-
COPY
|
10 |
-
RUN
|
11 |
-
RUN
|
12 |
-
|
13 |
-
|
|
|
1 |
+
FROM debian
|
2 |
ARG MODEL
|
3 |
ARG MODEL_NAME
|
4 |
ARG ADDITIONAL
|
5 |
RUN mkdir /opt/koboldcpp
|
6 |
+
RUN apt update && apt install curl -y
|
|
|
7 |
WORKDIR /opt/koboldcpp
|
8 |
+
COPY *.json /opt/koboldcpp/
|
9 |
+
RUN curl -fLo koboldcpp https://kcpplinux.concedo.workers.dev
|
10 |
+
RUN chmod +x ./koboldcpp
|
11 |
+
RUN curl -fLo model.ggml $MODEL || true
|
12 |
+
CMD ./koboldcpp --model model.ggml $ADDITIONAL --port 7860 --hordemodelname $MODEL_NAME --hordemaxctx 1 --hordegenlen 1 --preloadstory default.json --ignoremissing
|