abernix / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
93 stars 129 forks source link

[Help] How to specify node version #9

Closed s7dhansh closed 7 years ago

s7dhansh commented 7 years ago

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 7 years ago

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 7 years ago

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.