I have installed a node module from BitBucket. It is my package.json
"dependencies": {
"some-module": "git+https://bitbucket.org/some-module.git"
}
However, when I build the Docker image with this Dockerfile,
FROM node:14.4.0
WORKDIR /usr/src/app
COPY ./package*.json ./
RUN npm install
COPY ./ .
I am failed to build because I have not provided the git credentials when building the image.
I don't want to save my git credentials in the package.json file but save it in the server. What type of credentials and how can I provide the credentials when building the image?