Skip to content

Commit

Permalink
Install python and moodlemlbackend package
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonllao authored and David Monllaó committed Jan 30, 2019
1 parent c334c90 commit 28fd1f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions root/tmp/setup/python-mlbackend.sh
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 28fd1f3

Please sign in to comment.