Skip to content

Commit 972f9b0

Browse files
authored
fix: docker build (#591)
Signed-off-by: Bob Du <i@bobdu.cc>
1 parent be5b319 commit 972f9b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# build front-end
2-
FROM node:20-alpine AS frontend
2+
FROM node:22-alpine AS frontend
33

44
ARG GIT_COMMIT_HASH=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
55
ARG RELEASE_VERSION=v0.0.0
66

77
ENV VITE_GIT_COMMIT_HASH $GIT_COMMIT_HASH
88
ENV VITE_RELEASE_VERSION $RELEASE_VERSION
99

10-
RUN npm install pnpm -g
10+
RUN npm install pnpm@8 -g
1111

1212
WORKDIR /app
1313

@@ -22,9 +22,9 @@ COPY . /app
2222
RUN pnpm run build
2323

2424
# build backend
25-
FROM node:20-alpine as backend
25+
FROM node:22-alpine as backend
2626

27-
RUN npm install pnpm -g
27+
RUN npm install pnpm@8 -g
2828

2929
WORKDIR /app
3030

@@ -39,9 +39,9 @@ COPY /service /app
3939
RUN pnpm build
4040

4141
# service
42-
FROM node:20-alpine
42+
FROM node:22-alpine
4343

44-
RUN npm install pnpm -g
44+
RUN npm install pnpm@8 -g
4545

4646
WORKDIR /app
4747

0 commit comments

Comments
 (0)