This is an automated email from the ASF dual-hosted git repository.

baodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git


The following commit(s) were added to refs/heads/master by this push:
     new 54e6ba3  fix: Compile glibc binaries using node:buster instead of 
centos7 (#389)
54e6ba3 is described below

commit 54e6ba30be01ae75d2249eaabf180b7df648dd43
Author: Baodi Shi <[email protected]>
AuthorDate: Tue Jul 2 17:21:27 2024 +0800

    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 f4c9f48..b8a2687 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"]

Reply via email to