github.com/aergoio/aergo@v1.3.1/Dockerfile.tools (about) 1 FROM golang:1.12.5-alpine3.9 as builder 2 RUN apk update && apk add git cmake build-base m4 3 COPY . aergo 4 RUN cd aergo && make aergocli aergoluac brick 5 6 FROM alpine:3.9 7 RUN apk add libgcc 8 COPY --from=builder /go/aergo/bin/* /usr/local/bin/ 9 COPY --from=builder /go/aergo/cmd/brick/arglog.toml /tools/arglog.toml 10 COPY --from=builder /go/aergo/libtool/lib/* /usr/local/lib/ 11 ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" 12 WORKDIR /tools/ 13 CMD ["aergocli"]