mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
feat: make things to latest
This commit is contained in:
@@ -4,15 +4,14 @@ WORKDIR /app
|
||||
COPY . .
|
||||
RUN chmod +x ./translate-en.sh && ./translate-en.sh
|
||||
|
||||
FROM node:18 as builder
|
||||
FROM oven/bun:latest as builder
|
||||
|
||||
WORKDIR /build
|
||||
COPY ./web/package*.json ./
|
||||
RUN npm i -g pnpm
|
||||
RUN pnpm i
|
||||
COPY ./web/package*.json ./web/bun.lockb ./web/.npmrc ./
|
||||
RUN bun i
|
||||
COPY --from=translator ./app/web .
|
||||
COPY ./VERSION .
|
||||
RUN REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||
RUN REACT_APP_VERSION=$(cat VERSION) bun run build
|
||||
|
||||
FROM golang AS builder2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user