From 2d75036ad7fbb07353ffaf0bc3866d2a02997194 Mon Sep 17 00:00:00 2001 From: Alex Vorona Date: Tue, 16 Jun 2020 11:31:58 +0300 Subject: [PATCH] Fix alpine docker image entry point (#11749) * Use absolute path at entrypoint * Add jq to keep parity image backward compatibility Co-authored-by: Alex Vorona --- scripts/docker/alpine/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/docker/alpine/Dockerfile b/scripts/docker/alpine/Dockerfile index c2b3229ae89..cedc8236708 100644 --- a/scripts/docker/alpine/Dockerfile +++ b/scripts/docker/alpine/Dockerfile @@ -26,12 +26,13 @@ FROM alpine:edge # show backtraces ENV RUST_BACKTRACE 1 -# curl is installed to help create health and readiness checks on Kubernetes +# curl and jq are installed to help create health and readiness checks on Kubernetes RUN apk add --no-cache \ libstdc++ \ eudev-libs \ libgcc \ - curl + curl \ + jq RUN addgroup -g 1000 openethereum \ && adduser -u 1000 -G openethereum -s /bin/sh -D openethereum @@ -45,4 +46,4 @@ WORKDIR /home/openethereum RUN mkdir -p /home/openethereum/.local/share/io.parity.ethereum/ COPY --chown=openethereum:openethereum --from=builder /openethereum/target/x86_64-alpine-linux-musl/release/openethereum ./ -ENTRYPOINT ["./openethereum"] +ENTRYPOINT ["/home/openethereum/openethereum"]