Skip to content

Commit e2abc98

Browse files
authored
Install cpulimit from source instead of Ubuntu
1 parent b81310d commit e2abc98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
2121
mkdir -p /usr/share/man/man1
2222

2323
RUN apt update && apt upgrade -y && apt install unzip mariadb-client git zlibc zlib1g zlib1g-dev libzip-dev libicu-dev \
24-
libpng-dev nodejs yarn libpcre3-dev optipng libxslt1-dev libxslt1.1 openjdk-11-jdk ca-certificates p11-kit cpulimit -y
24+
libpng-dev nodejs yarn libpcre3-dev optipng libxslt1-dev libxslt1.1 openjdk-11-jdk ca-certificates p11-kit -y
25+
26+
RUN cd /tmp && git clone https://github.com/opsengine/cpulimit.git && cd cpulimit && make && \
27+
cp src/cpulimit /usr/bin && chmod +x /usr/bin/cpulimit
2528

2629
RUN curl -L -O https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz && \
2730
tar -xvf jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz && \

0 commit comments

Comments
 (0)