I am creating Docker container of nodejs application. Below is the sample of my Docker configuration file
FROM node:6.11
WORKDIR /usr/src/app
COPY package.json .
npm install
copy . /usr/src/app
EXPOSE 80
CMD [ "npm", "start" ]
This will download the node image from Docker hub and then it will create Docker image as per the configuration.
For security reasons I don't want to download nodejs image from Docker hub, Instead I want to use my private repository to download nodejs image.
As I have setup private repository I am not sure how to specify registry credentials in DockerFile.
Can anyone help me with this?