Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
herbertsteininger committed Apr 14, 2017
1 parent 3c184ae commit 1ab89ab
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Dockerfile
@@ -1,5 +1,5 @@
# hsteininger/DoMaLiMa
# VERSION 1.0.0
# VERSION 1.0.1

#what image to use
FROM debian
Expand All @@ -9,31 +9,23 @@ MAINTAINER Herbert Steininger <hsteininger@hsteininger.de>

#set env variables
ENV DEBIAN_FRONTEND noninteractive
ENV PATH /usr/local/MatLab/2017a/etc:/usr/local/MatLab/2017a/bin:$PATH

#set timezone
RUN echo "TZ='Europe/Berlin'; export TZ" >> /root/.bashrc

#run aptitude
RUN apt-get update && apt-get install -y --fix-missing tar less vim wget lynx psmisc lsof strace
RUN apt-get update && apt-get install -y --fix-missing lsb

##MATLABstuff
RUN apt-get install -y --fix-missing lsb

#copy matlabstuff
##MATLAB
RUN adduser --disabled-password --gecos '' matlab
ADD matlab_R2017a_glnxa64 /root/
ADD start.sh /root/bin/
COPY license.dat /root/license.dat
COPY activate.ini /root/activate.ini
COPY installer_input.txt /root/installer_input.txt

RUN ln -s /tmp /usr/tmp
RUN chmod -R 755 /root
RUN /root/install -inputFile /root/installer_input.txt

ADD ./start.sh /root/bin/
RUN chmod -R 755 /root/bin/start.sh

RUN ln -s /tmp /usr/tmp

RUN adduser --disabled-password --gecos '' matlab

ENTRYPOINT ["/root/bin/start.sh"]
#CMD ["/bin/bash"]

0 comments on commit 1ab89ab

Please sign in to comment.