woodpecker-email/Dockerfile

14 lines
281 B
Docker
Raw Normal View History

2020-04-23 17:33:29 +02:00
FROM golang:1.14-alpine as builder
2018-02-08 16:50:01 +01:00
WORKDIR /go/src/drone-email
COPY . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
FROM alpine:3.14
2015-12-11 09:46:07 +01:00
2022-07-14 09:36:44 +02:00
RUN apk add --no-cache ca-certificates tzdata
2015-12-11 09:46:07 +01:00
2018-02-08 16:50:01 +01:00
COPY --from=builder /go/src/drone-email/drone-email /bin/
2015-12-11 09:46:07 +01:00
ENTRYPOINT ["/bin/drone-email"]