Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/*