From 8307064f3e254bfa9a1d567ead22c807e535d79b Mon Sep 17 00:00:00 2001 From: Six <23470032+6ixfalls@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:38:06 -0800 Subject: [PATCH] Copy package.json in --- .dockerignore | 3 ++- apps/client/Dockerfile | 14 ++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2eb38499..656d256e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,5 @@ * !dist/ !prisma/ -!yarn.lock \ No newline at end of file +!yarn.lock +!package.json \ No newline at end of file diff --git a/apps/client/Dockerfile b/apps/client/Dockerfile index 02fab621..f8682b82 100644 --- a/apps/client/Dockerfile +++ b/apps/client/Dockerfile @@ -6,19 +6,9 @@ FROM node:16.18.1 as builder WORKDIR /app -COPY ./dist/apps/client ./yarn.lock ./prisma ./ +COPY ./dist/apps/client ./yarn.lock ./prisma ./package.json ./ # Install dependencies -RUN yarn install --production=false && yarn add @next/bundle-analyzer \ - prosemirror-commands \ - prosemirror-dropcursor \ - prosemirror-gapcursor \ - prosemirror-history \ - prosemirror-keymap \ - prosemirror-model \ - prosemirror-schema-list \ - prosemirror-state \ - prosemirror-transform \ - prosemirror-view +RUN yarn install --production=false # ------------------------------------------ # PROD STAGE