Increased usable port range for ephemeral ports from 26,669 to 59,976 (#6394)

This commit is contained in:
Alexey Zilber 2025-09-30 12:28:30 +08:00 committed by GitHub
parent 8784907736
commit 718d96cc58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,8 @@ RUN apk add --no-cache curl \
WORKDIR /app
COPY --from=build /source/src/Notifications/out /app
COPY ./src/Notifications/entrypoint.sh /entrypoint.sh
RUN echo "net.ipv4.ip_local_port_range = 5024 65000" >> /etc/sysctl.d/99-sysctl.conf
RUN echo "net.ipv4.tcp_fin_timeout = 30" >> /etc/sysctl.d/99-sysctl.conf
RUN chmod +x /entrypoint.sh
HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1