2

I've just created an Azure Linux Web App (preview) following this link:

I've developped a koajs backend that requires node v7.6.0 or higher.

Also I've read this SO Post: Upgrading Node on an Azure website? but it is related to Azure Windows Web App using iis_node.

So far, I tried to install nvm from the bash kudu console:
https://{mysitename}.scm.azurewebsites.net/DebugConsole
But it did not work

So now my guess is that when I choose the Node.js version from the azure portal, Azure selects a specific built-in docker image. Because there is no image for Node.js v7.6.0 or higher I need to create my own image ?

Is there anyway to get the latest docker image config for node.js from the portal or do I need to create one from scratch ?

Thomas
  • 24,234
  • 6
  • 81
  • 125

2 Answers2

2

Azure WebApp on Linux is a Docker container, according to the offical document Using a custom Docker image for Azure Web App on Linux, you can set a custom Docker image which includes Node.js higher version for a web app or using a node offical higer version image from Docker Hub.

Hope it helps.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43
1

Currently, Node.js versions available on the Linux platform are: 4.4.7, 4.5.0, 6.2.2, 6.6.0, 6.9.3, 6.10.3. I would recommend you switch to use Azure Windows Web App which enables you to upgrade the Node.js runtime to v7.6.0 or higher (7.7.4, 8.0.0, 8.1.4).

Aaron Chen
  • 9,835
  • 1
  • 16
  • 28