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