optimized bee-dashboard build
All checks were successful
CI / Build & deploy Cloudflare page (push) Successful in 2m43s

This commit is contained in:
2025-12-12 21:33:11 +08:00
parent 022fa66288
commit 148e35bbef
2 changed files with 17 additions and 29 deletions

View File

@@ -1,14 +1,4 @@
FROM alpine:3.22 AS base
RUN --mount=type=cache,target=/var/cache/apk apk add nodejs npm
FROM base AS build
ARG VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add chromium
WORKDIR /src
#ADD git@github.com:ethersphere/bee-dashboard.git#v${VERSION} .
ADD git@github.com:woggioni/bee-dashboard.git#${VERSION} .
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm install
FROM gitea.woggioni.net/woggioni/nginx:v1.29.3 AS final
COPY --from=build /src/build /srv/http
FROM gitea.woggioni.net/woggioni/nginx:v1.29.3
RUN mkdir /srv/http
RUN --mount=type=bind,source=bee-dashboard.tar,target=/bee-dashboard.tar tar -xf /bee-dashboard.tar -C /srv/http
COPY bee-dashboard.conf /etc/nginx/conf.d/bee-dashboard.conf