woodpecker-email/Dockerfile.armhf
igal-SX eb4d8f1c75
Update Arm Dockerfile
After several tries, the arm dockerfile is not working at all, and there is an error of the binary.
only change to golang 1.15 solve it
2021-09-14 21:58:41 +03:00

14 lines
280 B
Docker

FROM golang:1.15-alpine as builder
WORKDIR /go/src/drone-email
COPY . .
RUN GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build
FROM alpine:3.11
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/src/drone-email/drone-email /bin/
ENTRYPOINT ["/bin/drone-email"]