Pārlūkot izejas kodu

Removed stack-size changing, replaced with FD limit

Nadav Tasher 6 mēneši atpakaļ
vecāks
revīzija
7e1c65f616
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  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"]