Skip to content

Commit c83f2b5

Browse files
committed
Update Dockerfile
1 parent 88429d6 commit c83f2b5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
.next
3+
node_modules

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ FROM node:18-alpine AS base
44
FROM base AS deps
55
WORKDIR /app
66
COPY package.json pnpm-lock.yaml ./
7-
RUN pnpm install --frozen-lockfile
7+
RUN corepack enable pnpm && pnpm install --frozen-lockfile
88

99
# Stage 2: Build the application
1010
FROM base AS builder
1111
WORKDIR /app
1212
COPY --from=deps /app/node_modules ./node_modules
1313
COPY . .
14-
RUN pnpm run build
14+
RUN corepack enable pnpm && pnpm run build
1515

1616
# Stage 3: Production server
1717
FROM base AS runner

0 commit comments

Comments
 (0)