mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
update limits
This commit is contained in:
parent
af5a4f7cee
commit
548e69d3f3
2 changed files with 17 additions and 2 deletions
|
@ -11,8 +11,10 @@ RUN apt-get -y install golang
|
|||
|
||||
RUN useradd -m runner
|
||||
|
||||
RUN echo '@runner soft nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo '@runner hard nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner soft nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner hard nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner soft nofile 128' >> /etc/security/limits.conf
|
||||
RUN echo 'runner hard nofile 128' >> /etc/security/limits.conf
|
||||
|
||||
USER runner
|
||||
WORKDIR /tmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue