Skip to content

Commit

Permalink
optimize datafusion-cli docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu committed May 5, 2021
1 parent f7bd7b9 commit 2c0c4fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datafusion-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
# specific language governing permissions and limitations
# under the License.

FROM rust:latest

FROM rust:alpine as builder

COPY ./datafusion ./usr/src/datafusion
COPY ./datafusion-cli ./usr/src/datafusion-cli

WORKDIR /usr/src/datafusion-cli
RUN cargo install --path .

FROM alpine

COPY --from=builder /usr/src/datafusion-cli/datafusion-cli /usr/bin/datafusion-cli

CMD ["datafusion-cli", "--data-path", "/data"]

0 comments on commit 2c0c4fb

Please sign in to comment.