diff options
author | Wim <wim@42.be> | 2018-12-26 16:24:02 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-26 17:27:25 +0100 |
commit | 426aa33723a4bd98ddb0ec66e0d4e15154473d84 (patch) | |
tree | 8afe5188c1d24146778c04ebda041d8ae6988753 /docker | |
parent | da8e415ae1fb899df4fb05a8a81934e205fb4765 (diff) | |
download | matterbridge-msglm-426aa33723a4bd98ddb0ec66e0d4e15154473d84.tar.gz matterbridge-msglm-426aa33723a4bd98ddb0ec66e0d4e15154473d84.tar.bz2 matterbridge-msglm-426aa33723a4bd98ddb0ec66e0d4e15154473d84.zip |
Try building arm docker image
Diffstat (limited to 'docker')
-rw-r--r-- | docker/arm/Dockerfile | 18 |
1 files 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"] |