From 28fd1f344c6472f437461347a5ff4f130f4a5c5e Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 10 Dec 2018 11:21:08 +0100 Subject: [PATCH] Install python and moodlemlbackend package --- Dockerfile | 1 + root/tmp/setup/python-mlbackend.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 root/tmp/setup/python-mlbackend.sh diff --git a/Dockerfile b/Dockerfile index ba5cf47..6a71a06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN chmod 777 /tmp && chmod +t /tmp # Setup the required extensions. ARG DEBIAN_FRONTEND=noninteractive +RUN /tmp/setup/python-mlbackend.sh RUN /tmp/setup/php-extensions.sh RUN /tmp/setup/oci8-extension.sh ENV LD_LIBRARY_PATH /usr/local/instantclient diff --git a/root/tmp/setup/python-mlbackend.sh b/root/tmp/setup/python-mlbackend.sh new file mode 100755 index 0000000..d829e24 --- /dev/null +++ b/root/tmp/setup/python-mlbackend.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +echo "Installing Moodle Python mlbackend" + +apt-get update +apt-get install -y --no-install-recommends python2.7 python-pip +pip install --no-cache-dir moodlemlbackend + +# Keep our image size down. +rm -rf ~/.cache/pip +apt-get autoremove -y +apt-get clean +rm -rf /var/lib/apt/lists/*