Update Dockerfile to use pnpm version 10.14.0 and modify build script to use vite for building the project

This commit is contained in:
Luke Hagar
2025-08-14 12:32:33 -05:00
parent 9dff72e756
commit d442c1de44
2 changed files with 5 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ ENV DATABASE_URL=$DATABASE_URL
COPY package.json pnpm-lock.yaml* ./
# Enable and use pnpm via corepack
RUN corepack enable && corepack prepare pnpm@9.12.3 --activate
RUN corepack enable && corepack prepare pnpm@@10.14.0 --activate
# Install dependencies (include devDependencies needed for build)
RUN pnpm install --frozen-lockfile --prod=false
@@ -24,6 +24,9 @@ COPY . .
# Generate Prisma client and build SvelteKit (Node adapter)
RUN pnpm prisma generate
# Make sure SvelteKit has synced types/config now that config files are present
RUN pnpm run prepare
RUN pnpm build
ENV NODE_ENV=production

View File

@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "svelte-kit build",
"build": "vite build",
"start": "node build/index.js",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",