From 0480481f00fd5d314ad0ebdc5a13f07d03b622ac Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 4 Oct 2024 23:04:02 +0100 Subject: [PATCH] yes? --- backend/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 6416e51..6bf81d1 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -11,10 +11,11 @@ COPY package.json* pnpm-lock.yaml* pnpm-workspace.yaml* ./ COPY common ./common COPY backend ./backend -# Install dependencies for all workspaces, including backend -RUN pnpm install --filter ...backend +# Install all dependencies (for common and backend) +RUN pnpm install -# Build the backend +# Build the common workspace first, then the backend +RUN pnpm --filter ...common build RUN pnpm --filter ...backend build # Expose the port your application runs on