add lots of fonts and small refactoring

This commit is contained in:
Andy 2016-06-27 10:14:59 +02:00
parent 28f5da6da4
commit ca9f0ee1ce
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

View File

@ -5,16 +5,36 @@ MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive
# Install GTK, pulseaudio and fonts
RUN apt-get update && \
apt-get install -y libcanberra-gtk-module libexif12 pulseaudio paxctl \
fonts-opensymbol ttf-ubuntu-font-family \
fonts-tlwg-waree-ttf fonts-tlwg-umpush-ttf \
fonts-tlwg-typo-ttf fonts-tlwg-typist-ttf \
fonts-tlwg-typewriter-ttf fonts-tlwg-sawasdee-ttf \
fonts-tlwg-purisa-ttf fonts-tlwg-norasi-ttf \
fonts-tlwg-mono-ttf fonts-tlwg-loma-ttf \
fonts-tlwg-laksaman-ttf fonts-tlwg-kinnari-ttf \
fonts-tlwg-garuda-ttf fonts-tibetan-machine \
fonts-takao-pgothic fonts-symbola fonts-sil-padauk \
fonts-sil-abyssinica fonts-nanum fonts-lohit-guru \
fonts-lklug-sinhala fonts-liberation fonts-lao \
fonts-khmeros-core fonts-kacst fonts-kacst-one \
fonts-guru-extra fonts-freefont-ttf fonts-dejavu-core && \
rm -rf -- /var/lib/apt/lists /tmp/*.deb
# Obtain Google Chrome
ADD https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb /tmp/google-talkplugin_current_amd64.deb
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /tmp/google-chrome-stable_current_amd64.deb
# Install Google Chrome and its dependencies
RUN sh -c 'dpkg -i /tmp/google-chrome-stable_current_amd64.deb \
/tmp/google-talkplugin_current_amd64.deb 2>/dev/null; exit 0' && \
apt-get update && \
apt-get -fy install && \
apt-get install -y libcanberra-gtk-module libexif12 pulseaudio paxctl && \
rm -rf -- /var/lib/apt/lists /tmp/*.deb
# Workaround: pulseaudio client library likes to remove /dev/shm/pulse-shm-*
# files created by the host, causing sound to stop working.
# To fix this, we either want to disable the shm or mount /dev/shm