From 1b797b3759b1be04e1f72a7932a5143b81da7046 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Mon, 24 Aug 2026 15:45:40 -0400 Subject: [PATCH] Fix docker build --- Dockerfile | 8 ++++---- web/pnpm-workspace.yaml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 web/pnpm-workspace.yaml diff --git a/Dockerfile b/Dockerfile index 871df82..dc3287a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,14 +25,14 @@ COPY src/ ./src/ COPY src/pages/ ./src/pages/ COPY src/emails/ ./src/emails/ -# Build TypeScript -RUN pnpm run build - # Build web UI -COPY web/package.json web/pnpm-lock.yaml web/tsconfig.json web/vite.config.js web/index.html ./ +COPY web/package.json web/pnpm-lock.yaml web/pnpm-workspace.yaml web/tsconfig.json web/vite.config.js web/index.html ./web/ COPY web/src/ ./web/src/ RUN cd web && pnpm install --frozen-lockfile && pnpm run build +# Build TypeScript (runs tsc && build:html && build:web) +RUN pnpm run build + # Production image FROM node:22-alpine AS production diff --git a/web/pnpm-workspace.yaml b/web/pnpm-workspace.yaml new file mode 100644 index 0000000..6810e3a --- /dev/null +++ b/web/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + esbuild: true \ No newline at end of file