-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathDockerfile
53 lines (43 loc) · 1.51 KB
/
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
51
52
# Dockerfile for freedom.js
FROM ubuntu:trusty
MAINTAINER Raymond Cheng <[email protected]>
USER root
# Environment Variables
ENV DISPLAY :10
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
# Add additional package sources (Chrome Beta, Firefox-Next, node.js 0.12, io.js 1.x)
RUN apt-get update -qqy
RUN apt-get install -qqy software-properties-common wget curl
RUN curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
# Firefox beta (37) has weird XHR behavior
# RUN add-apt-repository -y ppa:mozillateam/firefox-next
# Mutually exclusive with Node 0.12
# RUN curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo bash -
# RUN apt-get -qqy install iojs
# This needs to be run, or the apt-get install will fail
RUN apt-get update -qqy
# apt-get
RUN apt-get -qqy install \
nodejs \
xvfb \
x11vnc \
xfonts-100dpi \
xfonts-75dpi \
xfonts-scalable \
xfonts-cyrillic \
firefox \
google-chrome-beta
# Patch the Chrome launcher to turn off sandboxing
COPY tasks/scripts/chrome_launcher.sh /opt/google/chrome-beta/google-chrome-beta
RUN chmod +x /opt/google/chrome-beta/google-chrome-beta
# npm
RUN npm install -g grunt-cli
RUN npm install -g gulp
RUN npm install -g bower
# Add the freedom repository
ADD . /freedom
WORKDIR /freedom
RUN npm install