Skip to content

Commit

Permalink
Apply ulimit to avoid hangup on cross-platform gosu call.
Browse files Browse the repository at this point in the history
  • Loading branch information
icedream committed May 5, 2024
1 parent 0b5cb7e commit 3055a69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/Dockerfiles/dovecot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ RUN addgroup -g 5000 vmail \
&& arch=$(arch | sed -e s/armv7l/armhf/ -e s/aarch64/arm64/ -e s/x86_64/amd64/) \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$arch" \
&& chmod +x /usr/local/bin/gosu \
# fix gosu hanging up on cross-platform build
&& ulimit -n 4096 \
&& gosu nobody true

# RUN cpan LockFile::Simple
Expand Down

0 comments on commit 3055a69

Please sign in to comment.