feat: able to add more UI theme (#860)

This commit is contained in:
JustSong
2024-01-01 18:55:03 +08:00
parent 505817ca17
commit aa03c89133
72 changed files with 66 additions and 42 deletions

View File

@@ -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