Skip to content

Commit

Permalink
fix(ignore): add cap_net_bind_service=+ep to /usr/bin/node (#25385) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaren authored Jan 3, 2025
1 parent 2d6b00b commit 7cf01e9
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 libcap

# 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 7cf01e9

Please sign in to comment.