Skip to content

Commit 3e1904b

Browse files
authored
Update Dockerfile
1 parent cc73e01 commit 3e1904b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ RUN sudo apt-get install -y inotify-tools
7171
# Create a script file sourced by both interactive and non-interactive bash shells
7272
ENV BASH_ENV /home/coder/.bash_env
7373
# Setup NVM:
74+
RUN mkdir -p /usr/local/nvm
7475
ENV NVM_DIR /usr/local/nvm
7576
ENV NODE_VERSION --lts
7677
RUN touch "${BASH_ENV}"
7778
RUN echo '. "${BASH_ENV}"' >> ~/.bashrc
79+
RUN cat ~/.bashrc
7880

7981
# Download and install nvm
80-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | PROFILE="${BASH_ENV}" bash
82+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | PROFILE="/home/coder/.bash_env" bash
8183
RUN echo node > .nvmrc
8284
RUN nvm install
8385

0 commit comments

Comments
 (0)