From 54e6ba30be01ae75d2249eaabf180b7df648dd43 Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Tue, 2 Jul 2024 17:21:27 +0800 Subject: [PATCH] fix: Compile glibc binaries using node:buster instead of centos7 (#389) --- pkg/linux/Dockerfile_linux_glibc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkg/linux/Dockerfile_linux_glibc b/pkg/linux/Dockerfile_linux_glibc index f4c9f487..b8a2687b 100644 --- a/pkg/linux/Dockerfile_linux_glibc +++ b/pkg/linux/Dockerfile_linux_glibc @@ -17,19 +17,15 @@ # under the License. # -FROM centos:7 +ARG NODE_VERSION -RUN yum update -y -RUN yum install -y gcc gcc-c++ make python3 +FROM node:${NODE_VERSION}-buster -WORKDIR /app -ARG PLATFORM -RUN SUFFIX=$(echo ${PLATFORM} | sed 's/86_//') && \ - echo $SUFFIX && \ - curl -O -L https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-$SUFFIX.tar.gz && \ - tar zxf node-v16.19.0-linux-$SUFFIX.tar.gz && \ - mv node-v16.19.0-linux-$SUFFIX node-v16.19.0 - -ENV PATH="/app/node-v16.19.0/bin:$PATH" +RUN apt-get update -y && \ + apt-get install -y \ + curl \ + g++ \ + make \ + python3 CMD ["sh"]