Skip to content

Commit 4898e5f

Browse files
reduced build size
1 parent c9536e7 commit 4898e5f

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

Dockerfile

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN apt-get install -y \
1313
git \
1414
make \
1515
cmake \
16+
software-properties-common \
1617
# C/C++
1718
gcc-12 \
1819
gcc-12-base \
@@ -21,8 +22,13 @@ RUN apt-get install -y \
2122
libstdc++-12-doc \
2223
# Python
2324
python2.7 \
25+
# Python3
2426
python3 \
2527
python3-pip \
28+
ninja-build \
29+
ffmpeg \
30+
libcairo2-dev \
31+
libpango1.0-dev \
2632
# MONO
2733
mono-complete \
2834
mono-mcs \
@@ -115,7 +121,12 @@ RUN apt-get install -y \
115121
inform \
116122
frotz \
117123
ncurses-bin \
118-
musl
124+
musl \
125+
# R
126+
r-base \
127+
r-cran-car \
128+
r-cran-mapdata \
129+
r-cran-reshape
119130

120131
##################################################################################
121132
### JAVA
@@ -124,12 +135,6 @@ RUN curl -O https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.deb
124135
&& dpkg -i jdk-24_linux-x64_bin.deb \
125136
&& rm jdk-24_linux-x64_bin.deb
126137

127-
### R
128-
RUN apt-get install -y r-base \
129-
r-cran-car \
130-
r-cran-mapdata \
131-
r-cran-reshape
132-
133138
### Julia
134139
RUN curl -fsSL https://install.julialang.org | sh -s -- -y \
135140
&& . /root/.bashrc
@@ -153,16 +158,9 @@ RUN cd v &&\
153158
./v symlink
154159

155160
### Python3
156-
RUN apt-get install -y \
157-
ninja-build \
158-
ffmpeg \
159-
libcairo2-dev \
160-
libpango1.0-dev
161-
162161
# Install the latest version of meson
163-
RUN pip3 install --upgrade meson
164-
165-
RUN pip3 install \
162+
RUN pip3 install --upgrade meson \
163+
&& pip3 install \
166164
matplotlib \
167165
numpy \
168166
opencv-python opencv-contrib-python \
@@ -186,7 +184,6 @@ RUN curl -O https://www.dyalog.com/uploads/php/download.dyalog.com/download.php?
186184
&& dpkg -i linux_64_19.0.50027_unicode.x86_64.deb \
187185
&& rm linux_64_19.0.50027_unicode.x86_64.deb
188186

189-
190187
### IO
191188
# Install dependencies
192189
RUN apt-get install -y libffi-dev \

0 commit comments

Comments
 (0)