[Help] How to specify node version
Closed this issue · 2 comments
s7dhansh commented
When using this image with mup, I am trying to specify node version 4.6.2, using
docker: {
image: 'abernix/meteord:base', //optional
args: ['-v /etc/timezone:/etc/timezone', '-v /etc/localtime:/etc/localtime', '--build-arg NODE_VERSION=4.6.2']
},
It fails with the error : unknown flag: --build-arg
What is the proper procedure?
EDIT: Why 4.6.2? Because Node 4.7+ is causing distinct memory and cpu overuse.
s7dhansh commented
On reading further I assume that I have to build a new image entirely from this repo using build-arg? Is there any simpler way?
abernix commented
The Node version is baked in, however you can use whichever previous tag you'd like from this list of tags. Remember to consider Node Security issues when using an older version though.