Fix the problem that the web page is blank caused by abnormal ui resources in apache/dolphinscheduler-api:3.1.3
https://github.com/apache/dolphinscheduler/issues/13465
https://github.com/apache/dolphinscheduler/issues/13523
FROM node:16.13 AS node
RUN git clone https://github.com/apache/dolphinscheduler.git && \
cd dolphinscheduler && \
git checkout 3.1.3-release
RUN npm install -g pnpm
# uncomment the following line if you need to configure the registry
# RUN pnpm config set registry https://registry.npm.taobao.org
RUN cd /dolphinscheduler/dolphinscheduler-ui && \
pnpm install && \
pnpm run build:prod
FROM apache/dolphinscheduler-api:3.1.3
RUN rm -rf /opt/dolphinscheduler/ui
COPY --from=node /dolphinscheduler/dolphinscheduler-ui/dist /opt/dolphinscheduler/ui
docker pull cccccmd/dolphinscheduler-api:3.1.3-fix-ui