Removed stack-size changing, replaced with FD limit

This commit is contained in:
Nadav Tasher 2024-11-24 01:29:56 +02:00
parent 447ae93476
commit 7e1c65f616

View file

@ -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"]