mirror of
https://github.com/adnanh/webhook.git
synced 2025-08-01 23:40:28 +00:00
chore: update docker
This commit is contained in:
parent
d7226e823b
commit
f93670d9ae
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.17.5-stretch AS Builder
|
FROM golang:1.19.4-bullseye AS Builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod download -x
|
RUN go mod download -x
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
FROM golang:1.17.5-alpine3.15 AS Builder
|
FROM golang:1.19.4-alpine3.16 AS Builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod download -x
|
RUN go mod download -x
|
||||||
RUN GOOS=linux GOARCH=amd64 go build -o webhook
|
RUN GOOS=linux GOARCH=amd64 go build -o webhook
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM alpine:3.16
|
||||||
LABEL maintainer "soulteary <soulteary@gmail.com>"
|
LABEL maintainer "soulteary <soulteary@gmail.com>"
|
||||||
COPY --from=builder /app/webhook /bin/
|
COPY --from=builder /app/webhook /bin/
|
||||||
CMD webhook
|
CMD webhook
|
Loading…
Add table
Add a link
Reference in a new issue