Skip to content

Commit 54e6ba3

Browse files
authored
fix: Compile glibc binaries using node:buster instead of centos7 (apache#389)
1 parent 70d7983 commit 54e6ba3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

pkg/linux/Dockerfile_linux_glibc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@
1717
# under the License.
1818
#
1919

20-
FROM centos:7
20+
ARG NODE_VERSION
2121

22-
RUN yum update -y
23-
RUN yum install -y gcc gcc-c++ make python3
22+
FROM node:${NODE_VERSION}-buster
2423

25-
WORKDIR /app
26-
ARG PLATFORM
27-
RUN SUFFIX=$(echo ${PLATFORM} | sed 's/86_//') && \
28-
echo $SUFFIX && \
29-
curl -O -L https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-$SUFFIX.tar.gz && \
30-
tar zxf node-v16.19.0-linux-$SUFFIX.tar.gz && \
31-
mv node-v16.19.0-linux-$SUFFIX node-v16.19.0
32-
33-
ENV PATH="/app/node-v16.19.0/bin:$PATH"
24+
RUN apt-get update -y && \
25+
apt-get install -y \
26+
curl \
27+
g++ \
28+
make \
29+
python3
3430

3531
CMD ["sh"]

0 commit comments

Comments
 (0)