Skip to content

Commit abec098

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

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ FROM ubuntu:latest AS smartdns-builder
22
LABEL previous-stage=smartdns-builder
33

44
# prepare builder
5-
ARG OPENSSL_VER=3.4.2
5+
ARG OPENSSL_VER=3.5.4
6+
ARG NODE_VERSION=20.x
67
RUN apt update && \
7-
apt install -y binutils perl curl make gcc nodejs npm clang wget unzip ca-certificates && \
8+
apt install -y binutils perl curl make gcc clang wget unzip ca-certificates && \
89
update-ca-certificates && \
10+
curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - && \
11+
apt install -y nodejs && \
12+
node --version && npm --version && \
913
\
1014
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
1115
export PATH="$HOME/.cargo/bin:$PATH" && \
@@ -36,7 +40,7 @@ COPY . /build/smartdns/
3640
RUN cd /build/smartdns && \
3741
export CFLAGS="-I /opt/build/include" && \
3842
export LDFLAGS="-L /opt/build/lib -L /opt/build/lib64" && \
39-
export PATH="$HOME/.cargo/bin:$PATH" && \
43+
export PATH="$HOME/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" && \
4044
rm -fr /build/smartdns/package/*.tar.gz && \
4145
sh ./package/build-pkg.sh --platform linux --arch `dpkg --print-architecture` --with-ui --static && \
4246
\

0 commit comments

Comments
 (0)