FROM docker.io/golang:1.19 as builder WORKDIR /usr/local/src COPY . . RUN CGO_ENABLED=0 go build -o kermago FROM scratch COPY --from=builder /usr/local/src/kermago /kermago EXPOSE 18018 ENTRYPOINT ["/kermago"]