Modify auth token npmrc when i run my dockerfile

  docker, kubernetes, npm, npm-install

how are you? I’m running a dockerfile, the problem is that I have to (during the process) modify my .npmrc folder and I don’t know how I could do it from the dockerfile.

i need to modify (add or modify) this:


my dockerFile:

FROM node:lts as dependencies
WORKDIR /emercore-arg-manager
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

FROM node:lts as builder
WORKDIR /emercore-arg-manager
COPY . .
COPY --from=dependencies /emercore-arg-manager/node_modules ./node_modules
RUN yarn build

FROM node:lts as runner
WORKDIR /emercore-arg-manager
ENV NODE_ENV production

COPY --from=builder /emercore-arg-manager/public ./public
COPY --from=builder /emercore-arg-manager/.next ./.next
COPY --from=builder /emercore-arg-manager/node_modules ./node_modules
COPY --from=builder /emercore-arg-manager/package.json ./package.json
#esto es un docker file papa ! 
CMD ["yarn", "start"]

Source: Docker Questions