Tweaks to the frontend build in the Dockerfile
A couple of related improvements to how we build the Dockerfile: 1. Don't invalidate the Python dependencies layer just because `package.json`, `gulpfile.js` or `scripts/` changed. 2. Use a prebuilt node-sass binary. The prebuilt binaries supplied by the node-sass project aren't compatible with Alpine Linux (which uses musl-libc rather than glibc). 3. Make some small tweaks to the gulpfile so we can build just the assets needed for the web application (i.e. skipping the extension).
Showing
... | @@ -55,7 +55,6 @@ | ... | @@ -55,7 +55,6 @@ |
"raf": "^3.1.0", | "raf": "^3.1.0", | ||
"raven-js": "^2.0.2", | "raven-js": "^2.0.2", | ||
"retry": "^0.8.0", | "retry": "^0.8.0", | ||
"run-sequence": "^1.1.5", | |||
"scroll-into-view": "^1.3.1", | "scroll-into-view": "^1.3.1", | ||
"showdown": "^1.2.1", | "showdown": "^1.2.1", | ||
"through2": "^2.0.1", | "through2": "^2.0.1", | ||
... | @@ -88,9 +87,6 @@ | ... | @@ -88,9 +87,6 @@ |
"engines": { | "engines": { | ||
"node": "0.10.x" | "node": "0.10.x" | ||
}, | }, | ||
"scripts": { | |||
"build-assets": "gulp build" | |||
}, | |||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
"url": "https://github.com/hypothesis/h.git" | "url": "https://github.com/hypothesis/h.git" | ||
... | ... |
Please register or sign in to comment