diff --git a/Dockerfile b/Dockerfile index 7a4d078..c1ca2a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ FROM base as deps WORKDIR /myapp ADD package.json package-lock.json .npmrc ./ +COPY ./patches ./patches RUN npm install --include=dev # Setup production node_modules @@ -19,6 +20,7 @@ WORKDIR /myapp COPY --from=deps /myapp/node_modules /myapp/node_modules ADD package.json package-lock.json .npmrc ./ +COPY ./patches ./patches RUN npm prune --omit=dev # Build the app