Trying to upgrade Node and NPM in Dockerfile for a machine that has Internet restrictions - can anyone help?
Here is what I tried:
- I downloaded the latest node on a machine with no restrictions to the Internet.
- Copied the binary to the machine with Internet restrictions.
- In the Dockerfile, I copy the file in to the image and then I un-tar the file.
FROM docker-mirror:443/dotnet/sdk:6.0-jammy
COPY ../node_update_src/node-v18.17.0-linux-x64.tar.xz /home/node_src/
RUN tar --strip-components 1 -xzf /home/node_src/node-v4.2.1-linux-x64.tar.gz --directory /usr/local
It does not work - any suggestions please?