Skip to content

Commit

Permalink
update docker workflow, remove npm mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed May 28, 2024
1 parent e7db49d commit b84386d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ ENV APP_HOME /code/bbs-go/admin
WORKDIR "$APP_HOME"

COPY . ./
RUN npm install -g pnpm --registry=https://registry.npmmirror.com
RUN pnpm install --registry=https://registry.npmmirror.com
# RUN npm install -g pnpm --registry=https://registry.npmmirror.com
# RUN pnpm install --registry=https://registry.npmmirror.com
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build:docker

FROM nginx:latest
Expand Down
6 changes: 4 additions & 2 deletions site/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ ENV APP_HOME /code/bbs-go/site
WORKDIR "$APP_HOME"

COPY . ./
RUN npm install -g pnpm --registry=https://registry.npmmirror.com
RUN pnpm install --registry=https://registry.npmmirror.com
# RUN npm install -g pnpm --registry=https://registry.npmmirror.com
# RUN pnpm install --registry=https://registry.npmmirror.com
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build:docker

FROM node:20-alpine
Expand Down

0 comments on commit b84386d

Please sign in to comment.