Created
November 8, 2016 11:43
-
-
Save gaving/eae05782b9bd5e791e320c26a7e9788e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w10:% docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
<none> <none> e251af91244b 11 minutes ago 671.3 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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