diff options
author | David Yip <yipdw@member.fsf.org> | 2017-12-22 00:07:02 +0000 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-11 04:09:16 -0600 |
commit | f13ebd02c91776ddb88b5178bf9015c6e0f1ca80 (patch) | |
tree | 87803f8fc3344a4baa276de6d0db47fffa5e386e /docker_entrypoint.sh | |
parent | 095a00ef3d6ed5845e331dc1e2b78fd42d861dd6 (diff) |
dockerfile: Give more stack space to /sbin/tini.
/sbin/tini ends up running the Sass compiler, which seems to need a larger thread stack size than the musl default. This patch incorporates a fix from https://raw.githubusercontent.com/jubel-han/dockerfiles/master/common/stack-fix.c, as described in https://github.com/sass/node-sass/issues/2031.
Diffstat (limited to 'docker_entrypoint.sh')
-rw-r--r-- | docker_entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index e92959c8e..1af5dde64 100644 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -11,4 +11,4 @@ echo "Updating permissions..." find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon echo "Executing process..." -exec su-exec mastodon:mastodon /sbin/tini -- "$@" +LD_PRELOAD=/lib/stack-fix.so exec su-exec mastodon:mastodon /sbin/tini -- "$@" |