Dockerfile: use neo-go for binary name

Be consistent with Makefile (see 3dfb1189f2).
This commit is contained in:
Roman Khimov 2019-08-29 16:01:34 +03:00
parent 6964d86347
commit a3890910f2

View file

@ -18,7 +18,7 @@ RUN set -x \
&& export GOGC=off \
&& export CGO_ENABLED=0 \
&& export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" \
&& go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/node ./cli/main.go
&& go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli/main.go
# Executable image
FROM alpine:3.10
@ -31,9 +31,9 @@ WORKDIR /
ENV NETMODE=testnet
COPY --from=builder /neo-go/config /config
COPY --from=builder /go/bin/node /usr/bin/node
COPY --from=builder /go/bin/neo-go /usr/bin/neo-go
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/usr/bin/node"]
ENTRYPOINT ["/usr/bin/neo-go"]
CMD ["node", "--config-path", "./config", "--testnet"]
CMD ["neo-go", "--config-path", "./config", "--testnet"]