FROM debian ARG MODEL_1 ARG MODEL_2 ARG IMGMODEL ARG WHISPERMODEL ARG MMPROJ ARG MODEL_NAME ARG ADDITIONAL RUN mkdir /opt/koboldcpp RUN apt update && apt install curl -y WORKDIR /opt/koboldcpp COPY *.json /opt/koboldcpp/ RUN curl -fLo koboldcpp https://koboldai.org/cpplinuxcu12 RUN chmod +x ./koboldcpp RUN curl -fLo model-00001-of-00002.gguf $MODEL_1 || true RUN curl -fLo model-00002-of-00002.gguf $MODEL_2 || true RUN curl -fLo imgmodel.ggml $IMGMODEL || true RUN curl -fLo mmproj.ggml $MMPROJ || true RUN curl -fLo whispermodel.ggml $WHISPERMODEL || true COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh CMD /entrypoint.sh