We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6d743 commit 342578dCopy full SHA for 342578d
Dockerfile
@@ -14,12 +14,15 @@ RUN apt-get -yq update && \
14
15
ADD . /opt/conditional
16
17
-RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
18
- apt-get -yq update && \
19
- apt-get -yq install nodejs && \
20
- npm install && \
21
- npm run production && \
22
- rm -rf node_modules && \
+ENV NVM_DIR /usr/local/nvm
+ENV NODE_VERSION v10.24.1
+RUN mkdir -p $NVM_DIR
+
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
23
+RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION && npm run production"
24
25
+RUN rm -rf node_modules && \
26
apt-get -yq remove nodejs npm && \
27
apt-get -yq clean all
28
0 commit comments