15 lines
532 B
Docker
15 lines
532 B
Docker
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#add-redistribution-stats .
|
|
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm install
|
|
|
|
FROM gitea.woggioni.net/woggioni/nginx:v1.29.1 AS final
|
|
COPY --from=build /src/build /srv/http
|
|
COPY bee-dashboard.conf /etc/nginx/conf.d/bee-dashboard.conf
|