From b33ca041916f6499de5480e39554decd7a63e9d8 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 13 Jan 2020 17:47:07 +0300 Subject: [PATCH] docker: use generic filename for dumped blocks --- .docker/privnet-entrypoint.sh | 6 +++--- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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/