From 831ce3e4d730389ea8784f9aee2ddb457d9233bf Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 8 Mar 2023 00:42:33 +0800 Subject: [PATCH] fix: construction error under node18 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37c8ea6..2ca2166 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,12 +34,13 @@ RUN apk add git ENV ADGUARD="0.107.25" RUN git clone https://github.com/AdguardTeam/AdGuardHome.git -b v${ADGUARD} --depth=1 -FROM alpine:3.16 AS adguard-web +FROM ${ALPINE} AS adguard-web RUN apk add make npm COPY --from=adguard-src /AdGuardHome/ /AdGuardHome/ WORKDIR /AdGuardHome/ RUN make js-deps -RUN make js-build +# TODO: for node18, remove the OpenSSL compatibility option after AdGuardHome project upgrade +RUN env NODE_OPTIONS="--openssl-legacy-provider" make js-build RUN mv ./build/static/ /tmp/ FROM ${GOLANG} AS adguard