Skip to content

Instantly share code, notes, and snippets.

@gaving
Created November 8, 2016 11:43
Show Gist options
  • Save gaving/eae05782b9bd5e791e320c26a7e9788e to your computer and use it in GitHub Desktop.
Save gaving/eae05782b9bd5e791e320c26a7e9788e to your computer and use it in GitHub Desktop.
FROM node:boron
# Fix bug https://github.com/npm/npm/issues/9863
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js
# Upgrade npm to 3.10.9
RUN npm install npm@latest -g
WORKDIR /
COPY package.json /
RUN npm -ddd install
CMD [ "npm", "run", "dev" ]
w10:% docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> e251af91244b 11 minutes ago 671.3 MB
{
"name": "test",
"dependencies": {
"mapbox-gl": "0.26.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment