File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM node:12.14.0
1
+ FROM centos:7
2
2
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
7
18
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
9
28
10
29
ENTRYPOINT ["/bin/bash" , "-c" ]
You can’t perform that action at this time.
0 commit comments