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 <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-08-07 10:53:13 +01:00
parent a2777f1f37
commit 332aff4a17
1 changed files with 2 additions and 1 deletions

View File

@ -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