FROM golang:1.20-alpine AS builder # ENV GO111MODULE=on \ CGO_ENABLED=0 \ GOOS=linux # # Install packages RUN apk -U add git # WORKDIR /root # # Build beelzebub RUN git clone https://github.com/t3chn0m4g3/beelzebub WORKDIR /root/beelzebub RUN go mod download RUN go build -o main . # FROM alpine:3.20 # COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /root/beelzebub/main /opt/beelzebub/ COPY --from=builder /root/beelzebub/configurations /opt/beelzebub/configurations # # Setup user, groups and configs RUN <