Skip to content

Commit 3e44f01

Browse files
committed
add dockerfile
1 parent cf214c3 commit 3e44f01

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM node:22-alpine AS builder
4+
5+
WORKDIR /app
6+
7+
RUN npm install -g pnpm
8+
9+
COPY package.json pnpm-lock.yaml ./
10+
11+
RUN pnpm install
12+
13+
COPY . .
14+
15+
RUN pnpm run build
16+
17+
18+
FROM node:22-alpine as runner
19+
20+
WORKDIR /app
21+
22+
COPY --from=builder /app/.next/standalone ./
23+
COPY --from=builder /app/.next/static ./.next/static
24+
COPY --from=builder /app/public ./public
25+
26+
EXPOSE 3000
27+
28+
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)