-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
56 lines (41 loc) · 1.91 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
53
54
55
56
FROM ubuntu:18.04
MAINTAINER Charlie Smith <charlie@chuckus.nz>
ENV DEBIAN_FRONTEND=noninteractive \
DEBCONF_NONINTERACTIVE_SEEN=true \
DISPLAY=:99
RUN echo "deb http://archive.ubuntu.com/ubuntu bionic main universe\n" > /etc/apt/sources.list \
&& echo "deb http://archive.ubuntu.com/ubuntu bionic-updates main universe\n" >> /etc/apt/sources.list \
&& echo "deb http://security.ubuntu.com/ubuntu bionic-security main universe\n" >> /etc/apt/sources.list
RUN apt-get update -qqy
RUN apt-get install -y software-properties-common tzdata
# RUN add-apt-repository ppa:deadsnakes/ppa
# RUN apt-get update -qqy
ENV TZ "UTC"
RUN echo "${TZ}" > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata
# RUN apt-get -y install python3.7 xvfb \
# TODO: remove once gui render.png working
RUN apt-get update -qqy --fix-missing
RUN apt-get -y install python3.7 python3.7-distutils xvfb curl
# && rm /etc/apt/sources.list.d/debian.list \
# && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
RUN set -xe \
&& curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y google-chrome-stable
# && rm -rf /var/lib/apt/lists/*
RUN apt-get install -y fonts-ipafont-gothic xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable x11vnc fluxbox
RUN mkdir -p ~/.vnc \
&& x11vnc -storepasswd secret ~/.vnc/passwd
COPY scripts/get-pip.py /tmp/
# RUN python3.7 /tmp/get-pip.py && rm /tmp/get-pip.py
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.7
# RUN apt-get -y install python3.7-pip
RUN mkdir /usr/jsprofiles
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip3.7 install --no-cache-dir -r requirements.txt
COPY . .
COPY scripts/run_chromewhip_linux.sh .
ENTRYPOINT [ "bash", "run_chromewhip_linux.sh" ]