From 9a2c4d830afd2bfb020753e5d07d3ec59de88cef Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sat, 31 Aug 2024 12:07:51 +0200 Subject: [PATCH] fix(docker): build lib before client --- .dockerignore | 2 ++ Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 9965fe2b..68e6410a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,3 +14,5 @@ logs .env.* !.env.example .wrangler +dist +dist-* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ae8ca9a4..eede6588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,9 @@ RUN npm install -g pnpm --ignore-scripts && pnpm install --frozen-lockfile --ign COPY . . # Build the apps -RUN pnpm --filter @enclosed/app-client run build && pnpm --filter @enclosed/app-server run build:node +Run pnpm --filter @enclosed/lib run build && \ + pnpm --filter @enclosed/app-client run build && \ + pnpm --filter @enclosed/app-server run build:node # Production image FROM node:22-alpine