From 0f8c5d992ffcee0e1e7d73d8572aba4931229c72 Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Wed, 5 May 2021 18:13:04 +0800 Subject: [PATCH] update dockerfile of datafusion-cli to be minimalist --- datafusion-cli/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/datafusion-cli/Dockerfile b/datafusion-cli/Dockerfile index 5c4abed3e41a2..27300a390d7b0 100644 --- a/datafusion-cli/Dockerfile +++ b/datafusion-cli/Dockerfile @@ -17,8 +17,11 @@ FROM rust:alpine as builder -COPY ./datafusion ./usr/src/datafusion -COPY ./datafusion-cli ./usr/src/datafusion-cli +RUN apk add --no-cache \ + musl-dev + +COPY ./datafusion /usr/src/datafusion +COPY ./datafusion-cli /usr/src/datafusion-cli WORKDIR /usr/src/datafusion-cli RUN cargo install --path . @@ -27,4 +30,6 @@ FROM alpine COPY --from=builder /usr/src/datafusion-cli/datafusion-cli /usr/bin/datafusion-cli -CMD ["datafusion-cli", "--data-path", "/data"] +ENTRYPOINT ["datafusion-cli"] + +CMD ["--data-path", "/data"]