ENV NODE_VERSION 6.9.1

RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
    && bash n ${NODE_VERSION} \
    && node --version
1
2
3
4
5

Refs:

  • https://github.com/tj/n

Powered by VuePress
Copyright 2010-2024 Thai Nguyen Hung all rights reserved.