chore: update docker

This commit is contained in:
soulteary 2023-01-09 19:21:10 +08:00
parent d7226e823b
commit f93670d9ae
No known key found for this signature in database
GPG key ID: 8107DBA6BC84D986
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.17.5-stretch AS Builder
FROM golang:1.19.4-bullseye AS Builder
WORKDIR /app
COPY . .
RUN go mod download -x

View file

@ -1,10 +1,10 @@
FROM golang:1.17.5-alpine3.15 AS Builder
FROM golang:1.19.4-alpine3.16 AS Builder
WORKDIR /app
COPY . .
RUN go mod download -x
RUN GOOS=linux GOARCH=amd64 go build -o webhook
FROM alpine:3.15
FROM alpine:3.16
LABEL maintainer "soulteary <soulteary@gmail.com>"
COPY --from=builder /app/webhook /bin/
CMD webhook