Skip to content

Commit 0038dba

Browse files
authored
install node-gyp in centos images (microsoft#35)
1 parent a2d892c commit 0038dba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

centos7-devtoolset8-arm64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ RUN yum install -y centos-release-scl-rh && \
2020
rpm -V $INSTALL_PKGS && \
2121
yum -y clean all --enablerepo='*'
2222

23-
# update npm and install yarn
23+
# update npm and install yarn, node-gyp
2424
RUN npm install -g npm@latest
2525
RUN npm install -g yarn
26+
RUN npm install -g node-gyp
2627

2728
ENV PATH=/opt/rh/devtoolset-8/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2829

centos7-devtoolset8-x64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ RUN yum install -y centos-release-scl-rh && \
2222
rpm -V $INSTALL_PKGS && \
2323
yum -y clean all --enablerepo='*'
2424

25-
# update npm and install yarn
25+
# update npm and install yarn, node-gyp
2626
RUN npm install -g npm@latest
2727
RUN npm install -g yarn
28+
RUN npm install -g node-gyp
2829

2930
ENV PATH=/opt/rh/devtoolset-8/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
3031

0 commit comments

Comments
 (0)