Open kaihendry opened 6 years ago
There is a :build
tag which contains build-essential. If there is something new with 1.7 which requires it, I can add it back in; it's just a pretty large addition.
Thanks, ulexus/meteor:build
gets further, but then chokes with:
Starting Meteor Application...
/home/meteor/www/bundle/programs/server/boot.js:49
const { pause } = require("./debug.js");
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/meteor/www/bundle/main.js:4:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
I think it's something to do with nodejs binary running the app. Why don't you use meteor run
here?
https://github.com/CyCoreSystems/docker-meteor/blob/master/entrypoint.sh#L200
IIUC meteor doesn't contain node in the bundle? Or somehow express it's dependency on node. Weird.
It would appear node 4 is too old https://github.com/CyCoreSystems/docker-meteor/blob/master/Dockerfile#L10
We recently upgraded to Meteor 1.7 and now this image is failing to run our bundle: https://unee-t-media.s3-accelerate.amazonaws.com/frontend/commit/15be07e.tar.gz
Tbh I assumed that a bundle was ready to go, so I was surprised to see npm at work in the logs... and failing.
So what's the path forward here? Add build-essential to https://github.com/CyCoreSystems/docker-meteor/blob/master/Dockerfile ?