Skip to content

Commit e8bd17b

Browse files
committed
chore: add nvm to dogfood template
1 parent 4d4d27c commit e8bd17b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dogfood/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi
203203
tar xf lazygit.tar.gz -C /usr/local/bin lazygit
204204

205205
# Install frontend utilities
206+
ENV NVM_DIR=/usr/local/nvm
207+
ENV NODE_VERSION=20.16.0
208+
RUN mkdir -p $NVM_DIR
209+
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.40.0/install.sh | bash
210+
RUN source $NVM_DIR/nvm.sh && \
211+
nvm install $NODE_VERSION && \
212+
nvm use $NODE_VERSION
213+
206214
RUN apt-get update && \
207215
# Node.js (from nodesource) and Yarn (from yarnpkg)
208216
apt-get install --yes --quiet \

0 commit comments

Comments
 (0)