add mastodon

This commit is contained in:
ace
2021-02-10 02:28:20 +03:00
parent b923f6310b
commit 53135a82fe
3 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,11 @@
FROM golang:1.15 as builder
COPY vapid.go /vapid.go
RUN go get -u github.com/SherClockHolmes/webpush-go
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o /vapid /vapid.go
FROM alpine:3.12
RUN apk add --no-cache openldap-passwd-pbkdf2 apache2-utils pwgen opendkim-utils coreutils
COPY dkim-key.sh /dkim-key.sh
COPY --from=builder /vapid /vapid
RUN chmod +x /vapid