feat: supprot pnpm

This commit is contained in:
ckt1031
2023-08-28 00:31:57 +08:00
parent 18029c630d
commit a7d9be1a99
7 changed files with 865 additions and 1288 deletions

View File

@@ -4,11 +4,12 @@ WORKDIR /app
COPY . .
RUN chmod +x ./translate-en.sh && ./translate-en.sh
FROM node:16 as builder
FROM node:18 as builder
WORKDIR /build
COPY ./web/package*.json ./
RUN npm ci
RUN npm i -g pnpm
RUN pnpm i
COPY --from=translator ./app/web .
COPY ./VERSION .
RUN REACT_APP_VERSION=$(cat VERSION) npm run build