chore: add docker for goreleaser

This commit is contained in:
soulteary 2023-01-10 00:06:03 +08:00
parent 9e754e8664
commit ffe22db383
No known key found for this signature in database
GPG key ID: 8107DBA6BC84D986
2 changed files with 9 additions and 1 deletions

View file

@ -1,4 +1,4 @@
project_name: hbh
project_name: webhook
builds:
- <<: &build_defaults

View file

@ -0,0 +1,8 @@
FROM alpine:3.15.0 as certs
RUN apk --update add ca-certificates
FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY webhook /usr/bin/webhook
EXPOSE 8345/tcp
ENTRYPOINT ["/usr/bin/webhook"]