From 56c0805754170106f2c3d146969e34a48ca07209 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 2 Mar 2018 18:00:21 +0300 Subject: [PATCH 1/2] Remove font dependency --- Dockerfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c344370..16fb9a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,11 +14,6 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \ apt-get -yq install \ adduser \ bomstrip \ - fonts-crosextra-carlito \ - fonts-dejavu \ - fonts-liberation \ - fonts-opensymbol \ - fonts-takao-gothic \ htop \ libasound2 \ libboost-regex-dev \ @@ -46,11 +41,8 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \ software-properties-common \ sudo \ supervisor \ - ttf-mscorefonts-installer \ xvfb \ zlib1g && \ - if [ $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -ne 61 ]; \ - then echo 'msttcorefonts failed to download'; exit 1; fi && \ sudo -u postgres psql -c "CREATE DATABASE onlyoffice;" && \ sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" && \ sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" && \ From 1546c72cf0170f018881f767e01a9aedc2533a60 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 2 Mar 2018 18:07:51 +0300 Subject: [PATCH 2/2] Remove unused code --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 16fb9a9..f976774 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \ locale-gen en_US.UTF-8 && \ curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ apt-get -y update && \ - echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \ apt-get -yq install \ adduser \ bomstrip \