From 426aa33723a4bd98ddb0ec66e0d4e15154473d84 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 26 Dec 2018 16:24:02 +0100 Subject: [PATCH] Try building arm docker image --- docker/arm/Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docker/arm/Dockerfile b/docker/arm/Dockerfile index 28164f48..604f9a65 100644 --- a/docker/arm/Dockerfile +++ b/docker/arm/Dockerfile @@ -1,11 +1,9 @@ -FROM cmosh/alpine-arm:edge -ENTRYPOINT ["/bin/matterbridge"] +FROM alpine:edge as certs +RUN apk --update add ca-certificates -COPY . /go/src/github.com/42wim/matterbridge -RUN apk update && apk add go git gcc musl-dev ca-certificates \ - && cd /go/src/github.com/42wim/matterbridge \ - && export GOPATH=/go \ - && go get \ - && go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \ - && rm -rf /go \ - && apk del --purge git go gcc musl-dev +FROM scratch +ARG VERSION=1.12.3 +COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +ADD https://github.com/42wim/matterbridge/releases/download/v${VERSION}/matterbridge-linux-arm /bin/matterbridge +RUN chmod +x /bin/matterbridge +ENTRYPOINT ["/bin/matterbridge"]