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:
parent
a2777f1f37
commit
332aff4a17
@ -1,7 +1,8 @@
|
|||||||
FROM node:20 as builder
|
FROM node:20 as builder
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ./package*.json ./
|
COPY ./package*.json ./
|
||||||
RUN npm i
|
COPY ./.npmrc ./
|
||||||
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
# Ideally the tests should be run separately in a CI/CD workflow rather than during the build
|
# Ideally the tests should be run separately in a CI/CD workflow rather than during the build
|
||||||
RUN npm run test
|
RUN npm run test
|
||||||
|
Loading…
Reference in New Issue
Block a user