webhook/Dockerfile
2023-01-09 20:44:55 +08:00

11 lines
No EOL
285 B
Docker

FROM golang:1.19.4-bullseye AS Builder
ENV GOPROXY=https://goproxy.cn
WORKDIR /app
COPY . .
RUN go mod download -x
RUN GOOS=linux GOARCH=amd64 go build -o webhook
FROM debian:stretch
LABEL maintainer "soulteary <soulteary@gmail.com>"
COPY --from=builder /app/webhook /bin/
CMD webhook