1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-11-22 11:16:55 +00:00

limit make jobs

This commit is contained in:
Dmitry Belyaev 2020-08-16 16:34:51 +03:00
parent ebe487186b
commit e36539188f
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -95,7 +95,8 @@ RUN set -x && \
RUN set -x && \ RUN set -x && \
cd /tmp/build && \ cd /tmp/build && \
make -j $(grep -cs ^processor /proc/cpuinfo) && \ nproc=$(n=$(nproc) ; max_n=6 ; [ $n -le $max_n ] && echo $n || echo $max_n) && \
make -j $nproc && \
make install make install
RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf