mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
9b19b08e06
They're no longer useful, their primary goal was to mint some GAS, but we have plenty of GAS now right in the genesis block. They also contained NEO transfer to non-multisig account, but that's easy to replicate using CLI. So keep the bootstrapping feature (just in case), but drop the default files used for it.
39 lines
990 B
Docker
39 lines
990 B
Docker
# Builder image
|
|
FROM golang:1-alpine as builder
|
|
|
|
RUN set -x \
|
|
&& apk add --no-cache git \
|
|
&& mkdir -p /tmp
|
|
|
|
COPY . /neo-go
|
|
|
|
WORKDIR /neo-go
|
|
|
|
ARG REPO=repository
|
|
ARG VERSION=dev
|
|
|
|
# https://github.com/golang/go/wiki/Modules#how-do-i-use-vendoring-with-modules-is-vendoring-going-away
|
|
# go build -mod=vendor
|
|
RUN set -x \
|
|
&& export GOGC=off \
|
|
&& export GO111MODULE=on \
|
|
&& export CGO_ENABLED=0 \
|
|
&& export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" \
|
|
&& go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli
|
|
|
|
# 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 /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"]
|