copy modules after install

This commit is contained in:
Ulf Gebhardt 2021-10-09 14:23:12 +02:00
parent f8addaf371
commit 13aa6772ea
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

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