From 3b53b4b99144294c22891686cf7e5045c25b651a Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Mon, 26 Jul 2021 21:47:49 +0200 Subject: [PATCH] Update Dockerfile to include things needed for deploy-ebook-to-www MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I do not know why, but if you try to combine both the apt-get lines, the server crashes. This works, and doesn’t cause any problems apart from being a little messier in looks, so 🤷‍♂️ --- vms/docker/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vms/docker/Dockerfile b/vms/docker/Dockerfile index 3e6adc45..ce7f79bf 100644 --- a/vms/docker/Dockerfile +++ b/vms/docker/Dockerfile @@ -2,8 +2,15 @@ FROM ubuntu:20.04 RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y composer php-fpm php-cli php-gd php-xml php-apcu php-mbstring php-intl apache2 apache2-utils libfcgi0ldbl task-spooler +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y sudo imagemagick openjdk-8-jre python3 pip calibre RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN pip install standardebooks + +RUN sudo addgroup committers +RUN sudo adduser se +RUN sudo usermod -g committers se + RUN mkdir -p /standardebooks.org/web RUN mkdir /var/log/local