Skip to content

Commit e2e0ab6

Browse files
committed
docker: fix docker build fail issue.
1 parent 2d5907c commit e2e0ab6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ LABEL previous-stage=smartdns-builder
44
# prepare builder
55
ARG OPENSSL_VER=3.4.2
66
RUN apt update && \
7-
apt install -y binutils perl curl make gcc nodejs npm clang wget unzip ca-certificates && \
7+
apt install -y binutils perl curl make gcc clang wget unzip ca-certificates && \
88
update-ca-certificates && \
9+
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
10+
node --version && npm --version && \
911
\
1012
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
1113
export PATH="$HOME/.cargo/bin:$PATH" && \
@@ -36,7 +38,7 @@ COPY . /build/smartdns/
3638
RUN cd /build/smartdns && \
3739
export CFLAGS="-I /opt/build/include" && \
3840
export LDFLAGS="-L /opt/build/lib -L /opt/build/lib64" && \
39-
export PATH="$HOME/.cargo/bin:$PATH" && \
41+
export PATH="$HOME/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" && \
4042
rm -fr /build/smartdns/package/*.tar.gz && \
4143
sh ./package/build-pkg.sh --platform linux --arch `dpkg --print-architecture` --with-ui --static && \
4244
\

0 commit comments

Comments
 (0)