diff --git a/.docker/privnet-entrypoint.sh b/.docker/privnet-entrypoint.sh index db3c609ed..4a0c80f82 100755 --- a/.docker/privnet-entrypoint.sh +++ b/.docker/privnet-entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh -if test -f /6000-privnet-blocks.acc.gz; then - gunzip /6000-privnet-blocks.acc.gz - /usr/bin/neo-go db restore -i /6000-privnet-blocks.acc +if test -f /privnet-blocks.acc.gz; then + gunzip /privnet-blocks.acc.gz + /usr/bin/neo-go db restore -i /privnet-blocks.acc fi /usr/bin/neo-go "$@" diff --git a/Dockerfile b/Dockerfile index fea8deda5..c4a40aa47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ LABEL version=$VERSION WORKDIR / COPY --from=builder /neo-go/config /config -COPY --from=builder /neo-go/.docker/6000-privnet-blocks.acc.gz / +COPY --from=builder /neo-go/.docker/6000-privnet-blocks.acc.gz /privnet-blocks.acc.gz 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/