I'm using patch-package to patch node_modules/oidc-provider/lib/helpers/configuration.js
The patch works fine locally.
However, try as I might, I can't get Docker to apply the patch when I containerise my software.
This is my Dockerfile:
FROM node:14.17.6
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
COPY package-lock.json ./
COPY patches .
RUN npm install
COPY . .
EXPOSE 4000
CMD [ "npm", "start" ]
The folder 'patches' is in my root directory and contains the required patch (/patches/oidc-provider+7.13.0.patch).