Skip to content

Commit

Permalink
fix Dockerfile: package manager from yarn->pnpm (#761)
Browse files Browse the repository at this point in the history
Co-authored-by: walkerdu <walkerdu@tencent.com>
  • Loading branch information
walkerdu and walkerdu authored Jan 3, 2025
1 parent b2d06f0 commit 2152916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY ./pnpm-lock.yaml /root/running_page/pnpm-lock.yaml
RUN npm config rm proxy&&npm config set registry https://registry.npmjs.org/ \
&&npm install -g corepack \
&&corepack enable \
&&yarn install
&&pnpm install

FROM develop-py AS data
ARG app
Expand Down Expand Up @@ -61,7 +61,7 @@ RUN python3 run_page/gen_svg.py --from-db --title "my running page" --type grid
FROM develop-node AS frontend-build
WORKDIR /root/running_page
COPY --from=data /root/running_page /root/running_page
RUN yarn run build
RUN pnpm run build

FROM nginx:alpine AS web
COPY --from=frontend-build /root/running_page/dist /usr/share/nginx/html/
Expand Down

0 comments on commit 2152916

Please sign in to comment.