Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Compile glibc binaries using node:buster instead of centos7 #389

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading