Hey, just checked it out, if you have a properly formatted .npmrc
in your working directory, then it should work well. Yeah, if you can show us the relevant part of your Dockerfile
, that would help!
In the meantime you can e.g. create an .npmrc
file with the contents you’d like
registry = https://my.shiny.registry/
and then in your Dockerfile
copy it to the working directory from where you are going to run the npm install
. So in simplified way:
COPY .npmrc ./
RUN npm install
Alternatively you can just create the file on the fly with a line like this:
RUN echo "registry = https://my.shiny.registry/" > .npmrc
RUN npm install
I’ve tested it out, and both of these work. I’m guessing that you are not copying the .npmrc
file into the container, that’s why it doesn’t find it. The explicit copy should work.
Let us know how it goes!