瀏覽代碼

Removed stack-size changing, replaced with FD limit

Nadav Tasher 6 月之前
父節點
當前提交
7e1c65f616
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Dockerfile

+ 1 - 4
Dockerfile

@@ -224,9 +224,6 @@ USER wekan
 ENV PORT=8080
 EXPOSE ${PORT}
 
-# Set the maximum stack size
-ENV STACK_SIZE=65500
-
 # Define the stop signal for node
 STOPSIGNAL SIGINT
 
@@ -234,4 +231,4 @@ STOPSIGNAL SIGINT
 VOLUME /data
 
 # Set startup command
-CMD ["bash", "-c", "ulimit -s ${STACK_SIZE} && exec node /wekan/main.js"]
+CMD ["bash", "-c", "ulimit -n 65500 && exec node /wekan/main.js"]