2023-06-10 03:20:50 +00:00
|
|
|
FROM golang:1.20 as builder
|
|
|
|
COPY vapid.go /opt/vapid.go
|
|
|
|
WORKDIR /opt
|
|
|
|
RUN go mod init vapid.go && go mod tidy
|
|
|
|
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o /vapid /opt/vapid.go
|
2021-02-09 23:28:20 +00:00
|
|
|
|
2023-06-10 03:20:50 +00:00
|
|
|
FROM alpine:3.18
|
2021-01-09 18:06:20 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache openldap-passwd-pbkdf2 apache2-utils pwgen opendkim-utils coreutils
|
|
|
|
COPY dkim-key.sh /dkim-key.sh
|
2021-02-09 23:28:20 +00:00
|
|
|
COPY --from=builder /vapid /vapid
|
|
|
|
RUN chmod +x /vapid
|