apt
is meant for terminal.- For script installation,
apt-get
is recommended. - Ref: Askubuntu & apt(8) manpage
- To avoid installing unnecessary pkgs and thereby, reduce image build time.
- Reduces build image size by ~260MB.
- To avoid installing unnecessary GUI dependencies by latter and thereby, reduce image build time.
- The former is ~140MB smaller than latter.
--no-install-recommends
skips it.- flex needs it.
- Otherwise, throws error
/usr/bin/ld: cannot find -ll
duringmake
in scl.
- To reduce image size.
- Done by official Dockerfiles:
To reduce image size (scl git folder size is 250M)
To reduce final image size, thereby, reduce image pull time.
Build deps bash bison camlp4 default-jdk-headless flex libfl-dev g++ gcc git make ocaml ocamlbuild
Runtime deps apache2 bash default-jre-headless graphviz lttoolbox perl python3
Unsure (considering as runtime deps for now) python3-pip python3-pandas python3-openpyxl xsltproc anytree