eb4d8f1c75
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
14 lines
280 B
Docker
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"]
|