try to mount the nodemodules

This commit is contained in:
Ulf Gebhardt 2021-10-09 14:10:32 +02:00
parent 90bf43a1eb
commit db3f3ad13d
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -64,6 +64,8 @@ FROM base as build
COPY ./backend/ ./
# Also copy external enities from database
COPY ./database/entity/ ../database/entity/
RUN sudo mount -o bind ./node_modules ../node_modules/
# npm install
RUN yarn install --production=false --frozen-lockfile --non-interactive
# npm build