Skip to content

Commit

Permalink
fix: Add cap_net_bind_service=+ep to /usr/bin/node in Docker cont…
Browse files Browse the repository at this point in the history
…ainer (#25385) (#25387)
  • Loading branch information
rklaren authored Jan 2, 2025
1 parent 240ab43 commit 61864f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM linux-${TARGETARCH}-alpine AS base

ENV NODE_ENV=production
WORKDIR /app
RUN apk add --no-cache tzdata eudev tini nodejs
RUN apk add --no-cache tzdata eudev tini nodejs setcap

# Dependencies and build
FROM base AS deps
Expand Down Expand Up @@ -47,6 +47,7 @@ COPY package.json LICENSE index.js data/configuration.example.yaml ./

COPY docker/docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN setcap 'cap_net_bind_service=+ep' /usr/bin/node

RUN mkdir /app/data

Expand Down

0 comments on commit 61864f0

Please sign in to comment.