Skip to content

Commit

Permalink
build: speed up front-end build
Browse files Browse the repository at this point in the history
  • Loading branch information
dnomd343 committed Mar 29, 2023
1 parent 875586d commit 6cda2c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG ALPINE="alpine:3.17"
ARG NODE="node:14-alpine3.17"
ARG RUST="rust:1.68-alpine3.17"
ARG GOLANG="golang:1.19-alpine3.17"

Expand All @@ -23,13 +24,12 @@ RUN apk add git
ENV ADGUARD="0.107.26"
RUN git clone https://github.com/AdguardTeam/AdGuardHome.git -b v${ADGUARD} --depth=1

FROM ${ALPINE} AS adguard-web
RUN apk add make npm
FROM ${NODE} AS adguard-web
RUN apk add make
COPY --from=adguard-src /AdGuardHome/ /AdGuardHome/
WORKDIR /AdGuardHome/
RUN make js-deps
# TODO: for node18, remove the OpenSSL compatibility option after AdGuardHome project upgrade
RUN env NODE_OPTIONS="--openssl-legacy-provider" make js-build
RUN make js-build
RUN mv ./build/static/ /tmp/

FROM ${GOLANG} AS adguard
Expand Down

0 comments on commit 6cda2c7

Please sign in to comment.