mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-14 14:30:26 +00:00
feat: able to add more UI theme (#860)
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,11 +1,18 @@
|
||||
FROM node:16 as builder
|
||||
|
||||
WORKDIR /build
|
||||
COPY web/package.json .
|
||||
RUN npm install
|
||||
COPY ./web .
|
||||
COPY ./VERSION .
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||
RUN themes=$(cat THEMES) \
|
||||
&& IFS=$'\n' \
|
||||
&& for theme in $themes; do \
|
||||
theme_path="web/$theme" \
|
||||
&& echo "Building theme: $theme" \
|
||||
&& cd $theme_path \
|
||||
&& npm install \
|
||||
&& DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build \
|
||||
&& cd /app \
|
||||
done
|
||||
|
||||
FROM golang AS builder2
|
||||
|
||||
|
Reference in New Issue
Block a user