-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
50 lines (44 loc) · 1023 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ubuntu
MAINTAINER Xavier Blanc <blancxav@gmail.com>
# Git
RUN apt-get update -y \
&& apt-get install git -y
# Install node
RUN apt-get update -y \
&& apt-get install curl -y
RUN curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
RUN chmod +x /usr/local/bin/n
RUN n stable
# Installing the packages needed to run Headless Nightmare
RUN apt-get install -y \
xvfb \
x11-xkb-utils \
xfonts-100dpi \
xfonts-75dpi \
xfonts-scalable \
xfonts-cyrillic \
x11-apps \
clang \
libdbus-1-dev \
libgtk2.0-dev \
libnotify-dev \
libgnome-keyring-dev \
libgconf2-dev \
libasound2-dev \
libcap-dev \
libcups2-dev \
libxtst-dev \
libxss1 \
libnss3-dev \
gcc-multilib \
g++-multilib
RUN mkdir /tmp/run
WORKDIR /tmp/run
RUN mkdir screen
COPY index.js .
COPY Player.js .
COPY testNightmare.js .
COPY package.json .
RUN npm install
ENV DEBUG=nightmare*
CMD xvfb-run -a --server-args='-screen 0 1024x768x24' node ./index.js --mongo=mongo --rabbit=rabbit