Moved to bun

This commit is contained in:
2025-08-09 22:42:46 +02:00
parent 5d4e8d5040
commit 6d55eb9f32
5 changed files with 1211 additions and 5863 deletions

View File

@@ -1,12 +1,11 @@
FROM node:18-alpine AS base FROM oven/bun AS base
WORKDIR /app WORKDIR /app
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
COPY package.json pnpm-lock.yaml ./ COPY package.json bun.lock ./
RUN npm install --global corepack@latest && corepack enable pnpm && pnpm i --frozen-lockfile RUN bun i --frozen-lockfile
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
# RUN pnpm run build
ENV NODE_ENV=production ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs && chown -R nextjs:nodejs . RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs && chown -R nextjs:nodejs .

1201
bun.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,8 +14,8 @@
"db:push": "drizzle-kit push", "db:push": "drizzle-kit push",
"db:up": "docker compose -f dev-db.yml up -d", "db:up": "docker compose -f dev-db.yml up -d",
"db:down": "docker compose -f dev-db.yml down", "db:down": "docker compose -f dev-db.yml down",
"container": "pnpm db:migrate && pnpm start", "container": "bun db:migrate && bun start",
"container:build": "pnpm run build && pnpm db:migrate && pnpm start" "container:build": "bun run build && bun db:migrate && bun start"
}, },
"dependencies": { "dependencies": {
"@hookform/resolvers": "^5.1.1", "@hookform/resolvers": "^5.1.1",
@@ -62,5 +62,9 @@
"tailwindcss": "^4", "tailwindcss": "^4",
"tw-animate-css": "^1.3.4", "tw-animate-css": "^1.3.4",
"typescript": "^5" "typescript": "^5"
} },
"trustedDependencies": [
"@tailwindcss/oxide",
"unrs-resolver"
]
} }

5851
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +0,0 @@
onlyBuiltDependencies:
- '@tailwindcss/oxide'
- esbuild
- sharp
- unrs-resolver