Fix docker build
This commit is contained in:
parent
a799e1ba1c
commit
1b797b3759
2 changed files with 6 additions and 4 deletions
|
|
@ -25,14 +25,14 @@ COPY src/ ./src/
|
||||||
COPY src/pages/ ./src/pages/
|
COPY src/pages/ ./src/pages/
|
||||||
COPY src/emails/ ./src/emails/
|
COPY src/emails/ ./src/emails/
|
||||||
|
|
||||||
# Build TypeScript
|
|
||||||
RUN pnpm run build
|
|
||||||
|
|
||||||
# Build web UI
|
# 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/
|
COPY web/src/ ./web/src/
|
||||||
RUN cd web && pnpm install --frozen-lockfile && pnpm run build
|
RUN cd web && pnpm install --frozen-lockfile && pnpm run build
|
||||||
|
|
||||||
|
# Build TypeScript (runs tsc && build:html && build:web)
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM node:22-alpine AS production
|
FROM node:22-alpine AS production
|
||||||
|
|
||||||
|
|
|
||||||
2
web/pnpm-workspace.yaml
Normal file
2
web/pnpm-workspace.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
allowBuilds:
|
||||||
|
esbuild: true
|
||||||
Loading…
Reference in a new issue