Skip to content

Commit

Permalink
Dockerfile: give precedence to the node installed via node-build
Browse files Browse the repository at this point in the history
If `node-gyp` is installed in the build image, we might have pulled
a very old node.
  • Loading branch information
byroot committed Feb 22, 2023
1 parent 7036bc2 commit 81d05d3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update -qq && \
ARG NODE_VERSION=<%= dockerfile_node_version %>
ARG YARN_VERSION=<%= dockerfile_yarn_version %>

ENV PATH=$PATH:/usr/local/node/bin
ENV PATH=/usr/local/node/bin:$PATH
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
npm install -g yarn@$YARN_VERSION && \
Expand Down

0 comments on commit 81d05d3

Please sign in to comment.