diff --git a/datafusion-cli/Dockerfile b/datafusion-cli/Dockerfile index 27300a390d7b0..f2a4c8ddacdb1 100644 --- a/datafusion-cli/Dockerfile +++ b/datafusion-cli/Dockerfile @@ -21,14 +21,18 @@ 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 . + +RUN cargo build --release + +RUN ls -hal FROM alpine -COPY --from=builder /usr/src/datafusion-cli/datafusion-cli /usr/bin/datafusion-cli +COPY --from=builder /usr/src/datafusion-cli/target/release/datafusion-cli /usr/local/bin ENTRYPOINT ["datafusion-cli"]