Skip to content

Commit

Permalink
fix: Compile glibc binaries using node:buster instead of centos7 (#389)
Browse files Browse the repository at this point in the history
(cherry picked from commit 54e6ba3)
  • Loading branch information
shibd committed Jul 2, 2024
1 parent 4c39024 commit f20c2b8
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pkg/linux/Dockerfile_linux_glibc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit f20c2b8

Please sign in to comment.