Try building arm docker image

This commit is contained in:
Wim 2018-12-26 16:24:02 +01:00
parent da8e415ae1
commit 426aa33723

View File

@ -1,11 +1,9 @@
FROM cmosh/alpine-arm:edge FROM alpine:edge as certs
ENTRYPOINT ["/bin/matterbridge"] RUN apk --update add ca-certificates
COPY . /go/src/github.com/42wim/matterbridge FROM scratch
RUN apk update && apk add go git gcc musl-dev ca-certificates \ ARG VERSION=1.12.3
&& cd /go/src/github.com/42wim/matterbridge \ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
&& export GOPATH=/go \ ADD https://github.com/42wim/matterbridge/releases/download/v${VERSION}/matterbridge-linux-arm /bin/matterbridge
&& go get \ RUN chmod +x /bin/matterbridge
&& go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \ ENTRYPOINT ["/bin/matterbridge"]
&& rm -rf /go \
&& apk del --purge git go gcc musl-dev