docker: use generic filename for dumped blocks
This commit is contained in:
parent
5f5d0097e2
commit
b33ca04191
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if test -f /6000-privnet-blocks.acc.gz; then
|
if test -f /privnet-blocks.acc.gz; then
|
||||||
gunzip /6000-privnet-blocks.acc.gz
|
gunzip /privnet-blocks.acc.gz
|
||||||
/usr/bin/neo-go db restore -i /6000-privnet-blocks.acc
|
/usr/bin/neo-go db restore -i /privnet-blocks.acc
|
||||||
fi
|
fi
|
||||||
/usr/bin/neo-go "$@"
|
/usr/bin/neo-go "$@"
|
||||||
|
|
|
@ -30,7 +30,7 @@ LABEL version=$VERSION
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
COPY --from=builder /neo-go/config /config
|
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 /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 /go/bin/neo-go /usr/bin/neo-go
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
Loading…
Reference in a new issue