Skip to content

Commit

Permalink
Remove net_bind_service capability by default
Browse files Browse the repository at this point in the history
Signed-off-by: Waldemar Quevedo <[email protected]>
  • Loading branch information
wallyqs committed May 22, 2024
1 parent 8d800ec commit 15e9a34
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions 2.10.x/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ RUN set -eux; \
COPY nats-server.conf /etc/nats/nats-server.conf
COPY docker-entrypoint.sh /usr/local/bin

RUN apk add --no-cache libcap \
&& setcap cap_net_bind_service=+ep /usr/local/bin/nats-server \
&& apk del libcap

EXPOSE 4222 8222 6222
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["nats-server", "--config", "/etc/nats/nats-server.conf"]
4 changes: 0 additions & 4 deletions 2.11.x/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ RUN set -eux; \
COPY nats-server.conf /etc/nats/nats-server.conf
COPY docker-entrypoint.sh /usr/local/bin

RUN apk add --no-cache libcap \
&& setcap cap_net_bind_service=+ep /usr/local/bin/nats-server \
&& apk del libcap

EXPOSE 4222 8222 6222
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["nats-server", "--config", "/etc/nats/nats-server.conf"]
4 changes: 0 additions & 4 deletions 2.9.x/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ RUN set -eux; \
COPY nats-server.conf /etc/nats/nats-server.conf
COPY docker-entrypoint.sh /usr/local/bin

RUN apk add --no-cache libcap \
&& setcap cap_net_bind_service=+ep /usr/local/bin/nats-server \
&& apk del libcap

EXPOSE 4222 8222 6222
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["nats-server", "--config", "/etc/nats/nats-server.conf"]

0 comments on commit 15e9a34

Please sign in to comment.