This repository has been archived by the owner on Aug 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (52 loc) · 2.3 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
57
58
59
60
61
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /Dockerfile-template.j2
# https://hub.docker.com/r/google/dart
# https://github.com/dart-lang/dart_docker
FROM google/dart:1.24.3
MAINTAINER Instrumentisto Team <[email protected]>
RUN mkdir -p /tmp/dart \
\
# Install third-party dependencies
&& DEBIAN_FRONTEND=noninteractive \
&& echo 'deb http://httpredir.debian.org/debian jessie contrib' \
>> /etc/apt/sources.list \
&& apt-get update \
&& (echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula \
select true | debconf-set-selections) \
&& apt-get install --no-install-recommends -y -q \
unzip \
xvfb xauth \
chromedriver \
libgconf-2-4 \
fonts-thai-tlwg \
fonts-indic \
ttf-dejavu-core fonts-dejavu-core \
ttf-kochi-gothic ttf-kochi-mincho \
ttf-mscorefonts-installer \
\
# Trick to fake ttf-indic-fonts-core since ttf-indic-fonts is transitional
&& mkdir -p /usr/share/fonts/truetype/ttf-indic-fonts-core \
&& ln -s /usr/share/fonts/truetype/lohit-punjabi/Lohit-Punjabi.ttf \
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf \
&& ln -s /usr/share/fonts/truetype/lohit-punjabi/Lohit-Punjabi.ttf \
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf \
&& ln -s /usr/share/fonts/truetype/lohit-tamil/Lohit-Tamil.ttf \
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf \
&& ln -s /usr/share/fonts/truetype/fonts-beng-extra/MuktiNarrow.ttf \
/usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrow.ttf \
\
# Install content_shell of required version
&& curl -fL -o /tmp/dart/content_shell.zip \
https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.3/dartium/content_shell-linux-x64-release.zip \
&& unzip /tmp/dart/content_shell.zip -d /tmp/dart/ \
&& mv /tmp/dart/drt-linux-* /usr/local/content_shell \
\
&& apt-get purge -y --force-yes \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
/tmp/dart
ENV PATH=$PATH:/usr/local/content_shell
VOLUME ["/app"]
WORKDIR /app
ENTRYPOINT xvfb-run -s '-screen 0 1024x768x24' $0 $*