Skip to content

Commit e4472fa

Browse files
committed
increase ulimit
1 parent d576b9c commit e4472fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM hyperknot/baseimage16:1.0.1
1+
FROM hyperknot/baseimage16:1.0.2
22

33
MAINTAINER friends@niiknow.org
44

@@ -14,6 +14,9 @@ ADD ./build/nginx_${NGINX_VERSION} /tmp
1414
RUN \
1515
cd /tmp \
1616

17+
# increase ulimit
18+
&& echo "\n\n* soft nofile 800000\n* hard nofile 800000\n\n" >> /etc/security/limits.conf \
19+
1720
# add nginx repo
1821
&& curl -s https://nginx.org/keys/nginx_signing.key | apt-key add - \
1922
&& cp /etc/apt/sources.list /etc/apt/sources.list.bak \

files/etc/nginx/nginx.new

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Server globals
22
user www-data;
33
worker_processes auto;
4+
worker_rlimit_nofile 65535;
45
error_log /var/log/nginx/error.log warn;
56
pid /var/run/nginx.pid;
67

0 commit comments

Comments
 (0)