From 2a61ff495705325f64648f899cb5010e1f562300 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 21 Feb 2023 14:02:48 +0100 Subject: [PATCH] MOBILE-2314 docker: Fix applying patches on build See https://github.com/ds300/patch-package/issues/185#issuecomment-850051315 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 82f350279..1ff23c922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ WORKDIR /app # Prepare node dependencies RUN apt-get update && apt-get install libsecret-1-0 -y COPY package*.json ./ +COPY patches ./patches +RUN echo "unsafe-perm=true" > ./.npmrc RUN npm ci --no-audit # Build source