Skip to content

Commit

Permalink
🐎 ci: 修改工作流文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanjunjie committed Jul 3, 2024
1 parent bd187db commit 656c779
Show file tree
Hide file tree
Showing 4 changed files with 4,160 additions and 3,234 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
dockerfile: ./vue-vben-admin/Dockerfile
restart: always
ports:
- 5173:80
- 9000:80
depends_on:
- servers

Expand All @@ -26,7 +26,7 @@ services:
command: npm run start:docker
restart: always
ports:
- 8080:8080
- 9001:5173
volumes:
- upload:/nest-admin/upload

Expand Down
13 changes: 11 additions & 2 deletions nest-admin/servers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ COPY . .

ENV TZ=Asia/Shanghai

RUN npm i --registry=https://registry.npmmirror.com -g pnpm && pnpm i && pnpm run start:docker
# 设置 node 阿里镜像
RUN npm config set registry https://registry.npmmirror.com
# 设置--max-old-space-size
ENV NODE_OPTIONS=--max-old-space-size=16384
# 设置阿里镜像、pnpm、依赖、编译
RUN npm install pnpm -g && \
pnpm install --no-frozen-lockfile && \
pnpm build
# node部分结束
RUN echo "🎉 编 🎉 译 🎉 成 🎉 功 🎉"

EXPOSE 8080
EXPOSE 5173
Loading

0 comments on commit 656c779

Please sign in to comment.