fix: Add cap_net_bind_service=+ep to /usr/bin/node in Docker container (#25385) (#25387)

This commit is contained in:
Ric Klaren
2025-01-02 06:39:38 -06:00
committed by GitHub
parent 240ab43f2d
commit 61864f0fb2
+2 -1
View File
@@ -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
@@ -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