We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a4c59d commit 0f2c1d7Copy full SHA for 0f2c1d7
Dockerfile
@@ -4,6 +4,7 @@ ADD root/ /
4
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
5
RUN chmod 777 /tmp && chmod +t /tmp
6
# Setup the required extensions.
7
+RUN /tmp/setup/python-mlbackend.sh
8
RUN /tmp/setup/php-extensions.sh
9
RUN /tmp/setup/oci8-extension.sh
10
root/tmp/setup/python-mlbackend.sh
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
+echo "Installing Moodle Python mlbackend"
+apt-get update
+apt-get install -y --no-install-recommends python2.7 python-pip python2.7-dev
+pip -V
+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/*
0 commit comments