matrix-gptzoo/Dockerfile

13 lines
318 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
RUN go build -o /matrix-bots ./main.go
FROM debian:bullseye
RUN apt update && apt install -y libolm3 ca-certificates openssl
COPY --from=build /matrix-bots /matrix-bots
CMD /matrix-bots