1
0
mirror of https://github.com/bitwarden/server synced 2025-12-23 03:33:35 +00:00

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

View File

@@ -57,6 +57,8 @@ RUN apk add --no-cache curl \
WORKDIR /app WORKDIR /app
COPY --from=build /source/src/Notifications/out /app COPY --from=build /source/src/Notifications/out /app
COPY ./src/Notifications/entrypoint.sh /entrypoint.sh 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 RUN chmod +x /entrypoint.sh
HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1 HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1