-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-octave-8.docker
128 lines (113 loc) · 2.8 KB
/
build-octave-8.docker
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# gnuoctave/build-octave
# Please follow docker best practices
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
# Docker images to build GNU Octave <https://www.octave.org>.
FROM ubuntu:22.04
LABEL maintainer="Kai T. Ohlhus <[email protected]>"
ENV LAST_UPDATED=2024-10-15
# Install security updates and required packages.
RUN apt-get --yes update && \
apt-get --yes upgrade && \
DEBIAN_FRONTEND="noninteractive" \
apt-get --no-install-recommends --yes install \
autoconf \
automake \
bison \
build-essential \
clang \
cmake \
curl \
dbus \
epstool \
fig2dev \
flex \
fonts-noto-cjk \
fonts-noto-color-emoji \
fonts-noto-mono \
g++ \
gcc \
gfortran \
git \
gnuplot \
gperf \
gzip \
icoutils \
info \
less \
libarpack2-dev \
libcurl4-gnutls-dev \
libfftw3-dev \
libfltk1.3-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libgl2ps-dev \
libglpk-dev \
libgmp-dev \
libgnutls28-dev \
libgpgme-dev \
libgraphicsmagick++1-dev \
libhdf5-dev \
libmpfr-dev \
libopenblas-dev \
libosmesa6-dev \
libpcre3-dev \
libqhull-dev \
libqrupdate-dev \
libqscintilla2-qt5-dev \
libqt5opengl5-dev \
libreadline-dev \
librsvg2-bin \
libseccomp-dev \
libsndfile1-dev \
libsuitesparse-dev \
libsundials-dev \
libssl-dev \
libtool \
libxft-dev \
locales \
lpr \
lzip \
make \
mercurial \
openjdk-11-jdk \
openssh-client \
perl \
pkg-config \
portaudio19-dev \
pstoedit \
python3-pip \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools \
ssh-askpass \
sudo \
tar \
texinfo \
texlive-latex-extra \
unzip \
wget \
xvfb \
zlib1g-dev \
zip && \
pip3 install --upgrade --no-cache-dir \
pip \
sympy && \
apt-get --yes clean && \
apt-get --yes autoremove && \
rm -Rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
# Configure environment
ENV SHELL=/bin/bash \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
# Install RapidJSON header library
RUN mkdir -p /tmp/build && \
cd /tmp/build && \
wget -q "https://github.com/Tencent/rapidjson/archive/refs/heads/master.tar.gz" && \
tar -xf master.tar.gz && \
cp -R rapidjson-master/include/rapidjson /usr/include && \
rm -rf /tmp/build