NodeJS and Python?

Ashey Editz 21 Reputation points
2022-05-19T14:50:09.28+00:00

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
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
215 questions
{count} votes

Accepted answer
  1. Andriy Bilous 11,176 Reputation points MVP
    2022-05-20T03:54:16.787+00:00

    Hello @Ashey Editz

    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://learn.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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful