File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ADD root/ /
44# Fix the original permissions of /tmp, the PHP default upload tmp dir.
55RUN chmod 777 /tmp && chmod +t /tmp
66# Setup the required extensions.
7+ RUN /tmp/setup/python-mlbackend.sh
78RUN /tmp/setup/php-extensions.sh
89RUN /tmp/setup/oci8-extension.sh
910
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ echo " Installing Moodle Python mlbackend"
6+
7+ apt-get update
8+ apt-get install -y --no-install-recommends python2.7 python-pip python2.7-dev
9+ pip -V
10+ pip install tensorflow> =1.0.0,< 1.1
11+ pip install moodlemlbackend
12+
13+ # Keep our image size down.
14+ rm -rf ~ /.cache/pip
15+ apt-get autoremove -y
16+ apt-get clean
17+ rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments