From 332aff4a17bf525eb5534173e56d212a749d41be Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 7 Aug 2023 10:53:13 +0100 Subject: [PATCH] Include .npmrc in Docker build step to ensure @owlboard/ts-types can be installed as a dev dependency for tsc Signed-off-by: Fred Boniface --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae40001..ccee898 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM node:20 as builder WORKDIR /usr/src/app COPY ./package*.json ./ -RUN npm i +COPY ./.npmrc ./ +RUN npm install COPY . . # Ideally the tests should be run separately in a CI/CD workflow rather than during the build RUN npm run test