We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88429d6 commit c83f2b5Copy full SHA for c83f2b5
.dockerignore
@@ -0,0 +1,3 @@
1
+.git
2
+.next
3
+node_modules
Dockerfile
@@ -4,14 +4,14 @@ FROM node:18-alpine AS base
4
FROM base AS deps
5
WORKDIR /app
6
COPY package.json pnpm-lock.yaml ./
7
-RUN pnpm install --frozen-lockfile
+RUN corepack enable pnpm && pnpm install --frozen-lockfile
8
9
# Stage 2: Build the application
10
FROM base AS builder
11
12
COPY --from=deps /app/node_modules ./node_modules
13
COPY . .
14
-RUN pnpm run build
+RUN corepack enable pnpm && pnpm run build
15
16
# Stage 3: Production server
17
FROM base AS runner
0 commit comments