Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (16 sloc)
629 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm64v8/alpine:3.8 as build | |
RUN apk update && apk add build-base go git libzmq zeromq-dev alpine-sdk libsodium-dev | |
ENV GOPATH / | |
RUN mkdir -p /src/github.com/docker && git -C /src/github.com/docker clone --depth 1 https://github.com/docker/docker | |
COPY *.go / | |
RUN go get -d ./... | |
RUN rm -r /src/github.com/docker/docker/vendor/github.com/docker/go-connections | |
RUN go get -d github.com/pkg/errors | |
RUN go get -d golang.org/x/net/proxy | |
COPY Makefile Makefile | |
RUN make build | |
FROM arm64v8/alpine:3.8 | |
RUN apk update && apk add libzmq | |
COPY --from=build /bin/databox /databox | |
RUN mkdir -p /certs && mkdir -p /sdk | |
CMD ["/databox"] |