mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-22 03:06:53 +00:00
limit make jobs
This commit is contained in:
parent
ebe487186b
commit
e36539188f
@ -95,7 +95,8 @@ RUN set -x && \
|
||||
|
||||
RUN set -x && \
|
||||
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
|
||||
|
||||
RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf
|
||||
|
Loading…
Reference in New Issue
Block a user