mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-03 02:21:38 +00:00
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user