Skip to content

Commit cfc48b3

Browse files
committed
Added NVM binaries in root bashrc
1 parent 3725ad4 commit cfc48b3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

workspace/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
165165
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
166166
;fi
167167

168+
# Add NVM binaries to root's .bashrc
169+
USER root
170+
RUN if [ ${INSTALL_NODE} = true ]; then \
171+
echo "" >> ~/.bashrc && \
172+
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \
173+
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
174+
;fi
175+
168176
#####################################
169177
# PHP Aerospike:
170178
#####################################

0 commit comments

Comments
 (0)