Skip to content

Commit

Permalink
feat: increase ulimit to 100000
Browse files Browse the repository at this point in the history
  • Loading branch information
w3b6x9 committed Nov 16, 2022
1 parent 0a81dd3 commit 3d2a709
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ COPY --from=tailscale /app/tailscaled /tailscale/tailscaled
COPY --from=tailscale /app/tailscale /tailscale/tailscale
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale

COPY limits.sh /app/limits.sh
ENTRYPOINT ["/app/limits.sh"]

CMD ["/tailscale/wrapper.sh"]
# Appended by flyctl
ENV ECTO_IPV6 true
Expand Down
3 changes: 2 additions & 1 deletion limits.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh

set -e
ulimit -n 100000
exec "$@"
exec "$@"

0 comments on commit 3d2a709

Please sign in to comment.