Skip to content

Commit

Permalink
Reduce number of docker image layers by putting all run commands into…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
pflooky committed Jul 2, 2024
1 parent 537320f commit 6aff4b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ FROM base AS base-arm64
ARG DUCKDB_ARCH=aarch64

FROM base-$TARGETARCH
RUN apt-get update && apt-get install -y curl unzip

RUN curl -L -o duckdb_cli.zip "https://github.com/duckdb/duckdb/releases/download/${DUCKDB_VERSION}/duckdb_cli-linux-${DUCKDB_ARCH}.zip"
RUN unzip duckdb_cli.zip
RUN apt-get update \
&& apt-get install -y curl unzip \
&& curl -L -o duckdb_cli.zip "https://github.com/duckdb/duckdb/releases/download/${DUCKDB_VERSION}/duckdb_cli-linux-${DUCKDB_ARCH}.zip" \
&& unzip duckdb_cli.zip

ENTRYPOINT [ "./duckdb" ]

0 comments on commit 6aff4b2

Please sign in to comment.