Limit maximum open file handles in Docker images. Increase the level of optimisation while building the Shairport Sync image.

This commit is contained in:
Mike Brady
2024-06-08 14:05:26 +01:00
parent 2456dcc591
commit 111e247b65
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ COPY . .
RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
WORKDIR /shairport-sync/build
RUN autoreconf -i ../
RUN ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=openssl \
RUN CFLAGS="-O3" CXXFLAGS="-O3" ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=openssl \
--with-airplay-2 --with-metadata --with-dummy --with-pipe --with-dbus-interface \
--with-stdout --with-mpris-interface --with-mqtt-client \
--with-apple-alac --with-convolution
+1 -1
View File
@@ -40,7 +40,7 @@ COPY . .
RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
WORKDIR /shairport-sync/build
RUN autoreconf -i ../
RUN ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=mbedtls \
RUN CFLAGS="-O3" CXXFLAGS="-O3" ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=mbedtls \
--with-metadata --with-dummy --with-pipe --with-dbus-interface \
--with-stdout --with-mpris-interface --with-mqtt-client \
--with-apple-alac --with-convolution
@@ -1,2 +1,5 @@
#!/bin/sh
echo "STARTING - $(date)"
# Set the limit to the same value Docker has been using in earlier version.
ulimit -n 1048576
@@ -1,2 +1,5 @@
#!/bin/sh
echo "STARTING - $(date)"
# Set the limit to the same value Docker has been using in earlier version.
ulimit -n 1048576