Skip to content

Commit

Permalink
Use shallow cloning of nodejs to reduce build times
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
thgreasi committed Apr 17, 2024
1 parent 8e4d899 commit d20bcef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ FROM ${DISTRO} AS build

WORKDIR /src

RUN git clone https://github.com/nodejs/node.git .

ARG NODE_VERSION
RUN git clone https://github.com/nodejs/node.git . --branch "v${NODE_VERSION}" --depth 1

COPY commit-table ./commit-table

RUN commit="$(awk -v version="v${NODE_VERSION}" '$2 == version {print $1}' commit-table)" && \
Expand Down

0 comments on commit d20bcef

Please sign in to comment.