github.com/aergoio/aergo@v1.3.1/Dockerfile (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 aergosvr
     5  
     6  FROM alpine:3.9
     7  RUN apk add libgcc
     8  COPY --from=builder /go/aergo/bin/aergosvr /usr/local/bin/
     9  COPY --from=builder /go/aergo/libtool/lib/* /usr/local/lib/
    10  COPY --from=builder /go/aergo/Docker/conf/* /aergo/
    11  ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
    12  WORKDIR /aergo/
    13  CMD ["aergosvr", "--home", "/aergo"]
    14  EXPOSE 7845 7846 6060