-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
23 lines (18 loc) · 899 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From ubuntu:16.04
# Install the matlab compiled runtime
RUN apt-get update && apt-get install -y wget unzip && \
mkdir /MCR && \
wget -nv -P /MCR http://ssd.mathworks.com/supportfiles/downloads/R2017a/deployment_files/R2017a/installers/glnxa64/MCR_R2017a_glnxa64_installer.zip && \
unzip /MCR/MCR_R2017a_glnxa64_installer.zip -d /MCR/MCR_R2017a_glnxa64_installer && \
/MCR/MCR_R2017a_glnxa64_installer/install -mode silent -agreeToLicense yes && \
rm -r /MCR/MCR_R2017a_glnxa64_installer /MCR/MCR_R2017a_glnxa64_installer.zip && \
rmdir /MCR
# Other system packages
RUN apt-get update && \
apt-get install -y openjdk-8-jre libxt6
# Copy the files we need
COPY . /opt/gradtensor
# Create input/output directories for binding
RUN mkdir /INPUTS && mkdir /OUTPUTS
# Default command shows usage for the two modules
CMD /bin/bash -c "cat /opt/gradtensor/usage-docker.txt"