Skip to content

Commit

Permalink
update dockerfile of datafusion-cli to be minimalist
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu committed May 5, 2021
1 parent 2c0c4fb commit 0f8c5d9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions datafusion-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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"]

0 comments on commit 0f8c5d9

Please sign in to comment.