Commit 4b9738fa authored by Philip ABBET's avatar Philip ABBET

Don't use caching anymore, it produces bigger images

And installing the dependencies isn't the biggest problem here: downloading
the dependencies of beat.env.python27 takes way more time and bandwidth anyway
parent ee0a0016
Pipeline #8157 passed with stage
in 73 minutes and 36 seconds
...@@ -36,42 +36,44 @@ ADD $tarball $destdir ...@@ -36,42 +36,44 @@ ADD $tarball $destdir
# Install the needed packages # Install the needed packages
RUN set -ex \ RUN set -ex \
&& build_deps=' \ && build_deps=' \
cmake \ cmake \
dh-autoreconf \ dh-autoreconf \
gcc \ gcc \
gfortran \ gfortran \
libatlas-dev \ libatlas-dev \
libc-dev \ libc-dev \
libfreetype6-dev \ libfreetype6-dev \
libgomp1 \ libgomp1 \
libjpeg-dev \ libjpeg-dev \
liblapack-dev \ liblapack-dev \
libpq-dev \ libpq-dev \
libreadline-dev \ libreadline-dev \
make \ make \
pkg-config \ pkg-config \
unzip \ unzip \
wget \ wget \
' \ ' \
&& apt-get update \ && apt-get update \
&& apt-get install -y $build_deps && apt-get install -y $build_deps \
&& apt-get clean \
# building of the content of the tarball # building of the content of the tarball
RUN make -C $destdir download \ && make -C $destdir download \
&& make -C $destdir \ && make -C $destdir \
&& rm -rf $destdir/pkg $destdir/log && rm -rf $destdir/pkg $destdir/log \
# remove the packages no longer needed, and and some runtime-only ones # remove the packages no longer needed, and add some runtime-only ones
RUN set -ex \ && set -ex \
&& runtime_deps=' \ && runtime_deps=' \
libatlas3-base \ libatlas3-base \
libffi6 \ libffi6 \
libfreetype6 \ libfreetype6 \
libjpeg62-turbo \ libjpeg62-turbo \
libreadline6 \ libreadline6 \
' \ ' \
&& apt-get purge -y --auto-remove $build_deps \ && apt-get purge -y --auto-remove $build_deps \
&& apt-get install -y $runtime_deps \ && apt-get install -y $runtime_deps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# change the PATH, so we can execute the scripts easily # change the PATH, so we can execute the scripts easily
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment