matrix-gptzoo/Dockerfile

13 lines
326 B
Docker
Raw Normal View History

2023-05-15 12:28:12 +02:00
FROM golang:1.20-bullseye as build
RUN apt update && apt install -y libolm3 libolm-dev
WORKDIR /src
COPY . ./
RUN go mod download
2023-05-17 19:51:45 +02:00
RUN go build -o /matrix-gptzoo ./main.go
2023-05-15 12:28:12 +02:00
FROM debian:bullseye
RUN apt update && apt install -y libolm3 ca-certificates openssl
2023-05-17 19:51:45 +02:00
COPY --from=build /matrix-gptzoo /matrix-gptzoo
CMD /matrix-gptzoo