forked from dzhvansky/pepato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (25 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM mtmiller/octave
RUN apt-get update \
&& apt-get install -y less \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN wget -O signal-1.4.1.tar.gz https://octave.sourceforge.io/download.php?package=signal-1.4.1.tar.gz \
&& wget -O io-2.4.12.tar.gz https://octave.sourceforge.io/download.php?package=io-2.4.12.tar.gz \
&& wget -O control-3.2.0.tar.gz https://octave.sourceforge.io/download.php?package=control-3.2.0.tar.gz \
&& wget -O statistics-1.4.1.tar.gz https://octave.sourceforge.io/download.php?package=statistics-1.4.1.tar.gz
ADD package_install.m package_install.m
RUN ["chmod", "+x", "package_install.m"]
#RUN chmod u+x package_install.m
RUN pwd; ls
RUN octave package_install.m
RUN ln -s /octave/bin/octave /usr/bin/octave
# create user account, and create user home dir
RUN useradd -ms /bin/bash pepato
ADD db /home/pepato/db
ADD src /home/pepato/src
ADD run_pepato /home/pepato/
# set the user as owner of the copied files.
RUN chown -R pepato:pepato /home/pepato/
USER pepato
WORKDIR /home/pepato