From 9a10899447d9b32bba92bb625d6b49a0003a202c Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 6 Nov 2014 13:59:50 +0100 Subject: [PATCH] install.sh --- octave/Dockerfile | 14 +++----------- octave/install.sh | 11 +++++++++++ 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 octave/install.sh diff --git a/octave/Dockerfile b/octave/Dockerfile index 6247b1e..6b414be 100644 --- a/octave/Dockerfile +++ b/octave/Dockerfile @@ -1,17 +1,9 @@ FROM debian:wheezy MAINTAINER Johannes Schickling "schickling.j@gmail.com" -# install octave 3.6.2 -RUN apt-get update && apt-get install -y octave - -# cleanup package manager -RUN apt-get autoclean && apt-get clean -RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - -# prepare dir -RUN mkdir /source +ADD install.sh install.sh +RUN chmod +x install.sh && ./install.sh && rm install.sh VOLUME ["/source"] WORKDIR /source - -CMD ["octave"] +CMD ["bash"] diff --git a/octave/install.sh b/octave/install.sh new file mode 100644 index 0000000..cb73fc4 --- /dev/null +++ b/octave/install.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +# install octave 3.6.2 +apt-get update && apt-get install -y octave + +# cleanup package manager +apt-get autoclean && apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# prepare dir +mkdir /source