From b84386dd43416918a0bd904ebce50769495a9ec5 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Tue, 28 May 2024 19:13:07 +0800 Subject: [PATCH] update docker workflow, remove npm mirror --- admin/Dockerfile | 6 ++++-- site/Dockerfile | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/Dockerfile b/admin/Dockerfile index d8b83aa07..88ede7ba8 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -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 diff --git a/site/Dockerfile b/site/Dockerfile index 9bc468b0b..53538b062 100644 --- a/site/Dockerfile +++ b/site/Dockerfile @@ -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