Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -30,11 +30,12 @@ RUN ls
|
|
30 |
|
31 |
RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
&& nvm
|
37 |
-
&& nvm
|
|
|
38 |
&& nvm use default
|
39 |
|
40 |
# Set up PATH so that Node.js and npm can be found
|
|
|
30 |
|
31 |
RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
|
32 |
|
33 |
+
ENV NODE_VERSION 16.18.0
|
34 |
+
# Install nvm with node and npm
|
35 |
+
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \
|
36 |
+
&& . $NVM_DIR/nvm.sh \
|
37 |
+
&& nvm install $NODE_VERSION \
|
38 |
+
&& nvm alias default $NODE_VERSION \
|
39 |
&& nvm use default
|
40 |
|
41 |
# Set up PATH so that Node.js and npm can be found
|