Skip to content

Commit 32f8f48

Browse files
committed
Use Centos 7 for building
This will bring the libc requirements back down.
1 parent ec55ed3 commit 32f8f48

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

ci/image/Dockerfile

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
FROM node:12.14.0
1+
FROM centos:7
22

3-
RUN apt-get update && apt-get install -y \
4-
libxkbfile-dev \
5-
libx11-dev \
6-
libsecret-1-dev
3+
RUN yum update -y \
4+
&& yum install -y epel-release centos-release-scl \
5+
&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
6+
&& yum update -y \
7+
&& yum install -y \
8+
devtoolset-6 \
9+
gcc-c++ \
10+
xz \
11+
ccache \
12+
git \
13+
wget \
14+
openssl \
15+
libxkbfile-devel \
16+
libsecret-devel \
17+
libx11-devel
718

8-
RUN curl -L https://github.com/mvdan/sh/releases/download/v3.0.1/shfmt_v3.0.1_linux_amd64 > /usr/local/bin/shfmt && chmod +x /usr/local/bin/shfmt
19+
RUN mkdir /usr/share/node && cd /usr/share/node \
20+
&& curl https://nodejs.org/dist/v12.14.0/node-v12.14.0-linux-x64.tar.xz | tar xJ --strip-components=1 --
21+
ENV PATH "$PATH:/usr/share/node/bin"
22+
RUN npm install -g yarn
23+
24+
RUN curl -L https://github.com/mvdan/sh/releases/download/v3.0.1/shfmt_v3.0.1_linux_amd64 > /usr/local/bin/shfmt \
25+
&& chmod +x /usr/local/bin/shfmt
26+
27+
RUN echo 'source /opt/rh/devtoolset-6/enable' >> /root/.bashrc
928

1029
ENTRYPOINT ["/bin/bash", "-c"]

0 commit comments

Comments
 (0)