turbopilot/Dockerfile

29 lines
444 B
Docker
Raw Normal View History

2023-04-10 03:51:48 -04:00
FROM alpine AS build
RUN apk add --update alpine-sdk boost-dev cmake
ADD ./ggml /build/ggml
RUN mkdir /build/ggml/build
WORKDIR /build/ggml/build
RUN cmake -D LLAMA_STATIC=ON ..
2023-04-10 03:51:48 -04:00
RUN make codegen-serve
FROM alpine AS runtime
WORKDIR /app
COPY --from=build /build/ggml/build/bin/codegen-serve /app/codegen-serve
ENV THREADS=4
2023-04-10 04:18:04 -04:00
ENV MODEL="/models/codegen-2B-multi-ggml-4bit-quant.bin"
2023-04-10 03:51:48 -04:00
COPY ./run.sh /app/
EXPOSE 18080
CMD /app/run.sh