Skip to content

Commit 702e57c

Browse files
committed
Update dockerfile for build
1 parent d2757f8 commit 702e57c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Use Node 23 instead of 20
2-
FROM node:23.1.0
3-
1+
# Use Node 22 instead of 20
2+
FROM node:22.11.0
43

54
# Install node-gyp and node-waf
65
RUN npm install -g node-gyp node-waf pnpm
@@ -45,11 +44,9 @@ COPY . .
4544
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install -w
4645
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --include=optional sharp -w
4746

48-
# Clean node_modules before copying source
49-
RUN rm -rf packages/*/node_modules
50-
5147
# Build all packages
5248
RUN pnpm build
49+
COPY . .
5350

5451
# Expose ports
5552
EXPOSE 3000

0 commit comments

Comments
 (0)