forked from cypress-io/cypress-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (27 loc) · 822 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM centos:7
# To find which package provides missing dependency, for example libXss.so
# yum whatprovides libXss*
# and then install displayed answer like
# yum install -y libXScrnSaver*
# Install dependencies
RUN yum install -y xorg-x11-server-Xvfb
RUN yum install -y gtk2-2.24*
RUN yum install -y libXtst*
# provides libXss
RUN yum install -y libXScrnSaver*
# provides libgconf-2
RUN yum install -y GConf2*
# provides libasound
RUN yum install -y alsa-lib*
# Install Node
RUN yum install -y epel-release
RUN yum install -y nodejs-6.11.3
# comment out installing NPM 5 because fails
# with error:
# Error: Cannot find module 'semver'
# RUN npm install -g npm@5
RUN node -v
RUN npm -v
# there is some dependency I cannot figure out missing
# which gets installed when installing "git*"
RUN yum install -y git*