Issue in installing NodeJS in docker container

We’ve created a new ASP.Net core + Angular application. We are deploying the application in AKS Container via Azure CI/CD process. We’ve added the below commands in the docker file (Container) to install Node in the container during runtime.

#Install NodeJs
RUN apt-get update &&
apt-get install -y wget &&
apt-get install -y gnupg2 &&
wget -qO- | bash - &&
apt-get install -y build-essential nodejs
#End Install

We’re using the URL - to install nodeJs in the docker container during container build process. On Devops server, this script gets executed internally & tries to connect to site.

In my organization, firewall restrictions are in place to prevent any http call from Devops server. This is preventing the script from getting executed.

Below is the log from DevOps

Our security team is not allowing to open port 80 for accessing the http url for security reasons. Is there any way to call this URL using https instead of http? Please guide.

Thanks in advance!!

Please, format your posts properly according to topic below sso you can post multipe links in one post in code blocks:

As for the question, Docker can’t fix if a script uses http instead of https. I would try to find a forward poxy that can change all http requests to be https. I found this in ServerFault, but I would recommend you to try to look for more solutions and find references in official documentations.

If you can’t or don’t want to run a proxy outside of your CI/CD pipeline, I think you could run it as a container as a part of your pipeline and use build arguments to set the proxy for the build.