mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 12:47:48 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user