This commit is contained in:
Umar Adilov 2026-06-01 23:26:52 +05:00
parent fcca7e8329
commit 30070779ec
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
FROM node:20-alpine AS builder
FROM node:22.13-alpine AS builder
# Enable corepack and install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable && corepack prepare pnpm@10.18.3 --activate
# Disable interactive prompts
ENV CI=true
@ -20,13 +20,13 @@ COPY . .
# Build the application
RUN pnpm build
FROM node:22-alpine AS runner
FROM node:22.13-alpine AS runner
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable && corepack prepare pnpm@10.18.3 --activate
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 3000
CMD ["pnpm", "start"]
CMD ["pnpm", "start"]

View File

@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"type": "module",
"packageManager": "pnpm@10.18.3",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
@ -89,4 +90,4 @@
"@types/react-dom": "19.2.3"
}
}
}
}