Commit 2817ce81 authored by Eric Eastwood's avatar Eric Eastwood 🌴

Update Docker images to use node@10 and npm@5

We started recommending since Gitter v19.18.0, https://gitlab.com/gitlab-org/gitter/webapp/blob/develop/CHANGELOG.md#19180-2018-9-5
parent dfd15417
......@@ -4,6 +4,10 @@
- Add "What's new?" on profile menu linking to changelog
- Thanks to [@avelino](https://gitlab.com/avelino) for the contribution, https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1300
Developer facing:
- Update base Docker images to use node@10 and npm@5, https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1312
# 19.32.0 - 2019-1-8
......
FROM node:6.14.1
FROM node:10.15.0
RUN mkdir -p /app
RUN mkdir -p /npm_cache
WORKDIR /app
# From https://github.com/npm/npm/issues/16807#issuecomment-310084968
# We can simplify this back to `npm install npm@latest-5 -g` once we update to > `FROM node:8.9.4`
RUN currentDirectory=$(pwd) \
&& mkdir -p /tmp/npm-install-directory \
&& cd /tmp/npm-install-directory \
&& npm install npm@latest-5 \
&& rm -rf /usr/local/lib/node_modules \
&& mv node_modules /usr/local/lib/ \
&& cd $currentDirectory
RUN npm install npm@latest-5 -g
RUN npm config set cache /npm_cache
RUN npm config set prefer-offline true
......
......@@ -13411,10 +13411,9 @@
}
},
"natives": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/natives/-/natives-1.1.3.tgz",
"integrity": "sha512-BZGSYV4YOLxzoTK73l0/s/0sH9l8SHs2ocReMH1f8JYSh5FUWu4ZrKCpJdRkWXV6HFR/pZDz7bwWOVAY07q77g==",
"dev": true
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/natives/-/natives-1.1.6.tgz",
"integrity": "sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA=="
},
"natural-compare": {
"version": "1.4.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment