Skip to content

Commit 67ff7c4

Browse files
committed
Refactor Dockerfile to source nvm.sh using dot operator
1 parent 9f19967 commit 67ff7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/node.js/22/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apt-get update && \
1414
echo "export NVM_DIR=$NVM_DIR" >> /etc/profile.d/nvm.sh && \
1515
echo "[ -s $NVM_DIR/nvm.sh ] && . $NVM_DIR/nvm.sh" >> /etc/profile.d/nvm.sh && \
1616
echo "[ -s $NVM_DIR/bash_completion ] && . $NVM_DIR/bash_completion" >> /etc/profile.d/nvm.sh && \
17-
source /etc/profile.d/nvm.sh && \
17+
. /etc/profile.d/nvm.sh && \
1818
nvm install 22 && \
1919
nvm use 22 && \
2020
npm install -g typescript yarn pnpm && \

0 commit comments

Comments
 (0)