Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

ci(dockerfile): update pnpm version

LinkinStarsc1723f1a4470
diff --git a/Dockerfile b/Dockerfile
index ef700dee..68806ede 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,8 +17,8 @@ ARG CGO_EXTRA_CFLAGS
COPY . ${BUILD_DIR}
WORKDIR ${BUILD_DIR}
-RUN apk --no-cache add build-base git bash nodejs npm && npm install -g pnpm corepack \
- && make install-ui-packages clean build
+RUN apk --no-cache add build-base git bash nodejs npm && npm install -g pnpm@latest \
+ && make clean build
RUN chmod 755 answer
RUN ["/bin/bash","-c","script/build_plugin.sh"]
diff --git a/Makefile b/Makefile
index cc7472b7..3db1f734 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ clean:
install-ui-packages:
@corepack enable
- @corepack prepare [email protected] --activate
+ @corepack prepare pnpm@latest --activate
ui:
@cd ui && pnpm install && pnpm build && cd -