question

AsheyEditz-3409 avatar image
0 Votes"
AsheyEditz-3409 asked VenkateshDodda-MSFT commented

NodeJS and Python?

I wish to buy a basic app service hosting for my nodejs project, which is a discord bot. Im using aoi.js npm package. It also requires a dependency that deals with voice commands. This dependency requires python. How do i make one single project with both nodejs and python.

azure-app-configuration
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AsheyEditz-3409,Thanks for reaching out. Adding to Andriy Bilous suggestion below alternatively If you deploy your Node js app with Windows as operating system, then You can use the site extensions to add the python extension and to run the python script from your kudu console. you can refer to this documentation for more information about the Azure site Extensions in webapps.

0 Votes 0 ·

1 Answer

AndriyBilous avatar image
1 Vote"
AndriyBilous answered

Hello @AsheyEditz-3409

I suggest you to use App Service Linux Docker and create your custom docker image based on nodejs and install python as there is no official docker image that has both nodejs and python in it.
I would not recommend to use 3rd party unofficial docker images as they may have security vulnerabilities.

Dockerfile example:

FROM node:16

RUN apt-get update -yq \
&& apt-get install python -yq


https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux

If you think your question has been answered, click "Mark as Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.