neo-go/Dockerfile
Roman Khimov d6364739c5 Dockerfile: use make to build neo-go
Don't duplicate go build invocation line there.
2021-05-13 17:16:27 +03:00

32 lines
648 B
Docker

# Builder image
FROM golang:1-alpine as builder
RUN set -x \
&& apk add --no-cache git make \
&& mkdir -p /tmp
COPY . /neo-go
WORKDIR /neo-go
ARG REPO=repository
ARG VERSION=dev
RUN make build
# Executable image
FROM alpine
ARG VERSION
LABEL version=$VERSION
WORKDIR /
COPY --from=builder /neo-go/config /config
COPY --from=builder /neo-go/.docker/privnet-entrypoint.sh /usr/bin/privnet-entrypoint.sh
COPY --from=builder /neo-go/bin/neo-go /usr/bin/neo-go
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/usr/bin/privnet-entrypoint.sh"]
CMD ["node", "--config-path", "/config", "--privnet"]