There was an error while loading. Please reload this page.
2 parents b83e6be + 437c1b5 commit 86e4400Copy full SHA for 86e4400
1 file changed
Dockerfile
@@ -18,8 +18,7 @@ RUN mkdir -p $NVM_DIR /var/www && \
18
. $NVM_DIR/nvm.sh && \
19
nvm install $NODE_VERSION && \
20
nvm alias default $NODE_VERSION && \
21
- ln -sf $(find $NVM_DIR -path "*/bin/node" | head -1) /usr/bin/node && \
22
- ln -sf $(find $NVM_DIR -path "*/bin/npm" | head -1) /usr/bin/npm
+ ln -sf $(find $NVM_DIR -path "*/bin/node" | head -1) /usr/bin/node
23
24
# Install build tools needed to compile native modules (node-libcurl)
25
RUN apt-get update && \
@@ -30,6 +29,8 @@ RUN apt-get update && \
30
29
WORKDIR "/var/www"
31
COPY . /var/www
32
33
-RUN npm install --production
+RUN . $NVM_DIR/nvm.sh && \
+ nvm use default && \
34
+ npm install --production
35
36
ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"]
0 commit comments