mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 13:13:41 +08:00
feat: supprot pnpm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user