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/ /
4
4
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
5
5
RUN chmod 777 /tmp && chmod +t /tmp
6
6
# Setup the required extensions.
7
+ RUN /tmp/setup/python-mlbackend.sh
7
8
RUN /tmp/setup/php-extensions.sh
8
9
RUN /tmp/setup/oci8-extension.sh
9
10
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