Skip to content

Commit

Permalink
feat: updating docker
Browse files Browse the repository at this point in the history
  • Loading branch information
legovaer committed Oct 10, 2022
1 parent 15814ce commit 2a1de5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -2,7 +2,7 @@ FROM node:16-alpine3.12 as build
ARG ROOM_ASSISTANT_VERSION=latest

RUN apk add --no-cache python3 make g++ libusb-dev eudev-dev avahi-dev cairo-dev jpeg-dev pango-dev giflib-dev
RUN npm install -g --unsafe-perm room-assistant@$ROOM_ASSISTANT_VERSION
RUN npm install -g --unsafe-perm room-assistant2@$ROOM_ASSISTANT_VERSION

FROM node:16-alpine3.12

Expand All @@ -12,9 +12,9 @@ RUN apk add --no-cache bluez bluez-deprecated libusb avahi-dev bind-tools dmidec
&& setcap cap_net_raw+eip $(eval readlink -f `which node`) \
&& setcap cap_net_raw+eip $(eval readlink -f `which hcitool`) \
&& setcap cap_net_admin+eip $(eval readlink -f `which hciconfig`) \
&& ln -s /usr/local/lib/node_modules/room-assistant/bin/room-assistant.js /usr/local/bin/room-assistant
&& ln -s /usr/local/lib/node_modules/room-assistant2/bin/room-assistant.js /usr/local/bin/room-assistant
RUN npm install -g winston-loki winston-elasticsearch
COPY --from=build /usr/local/lib/node_modules/room-assistant /usr/local/lib/node_modules/room-assistant
COPY --from=build /usr/local/lib/node_modules/room-assistant2 /usr/local/lib/node_modules/room-assistant2

ENTRYPOINT ["tini", "--", "room-assistant"]
CMD ["--digResolver"]
Expand Down

0 comments on commit 2a1de5b

Please sign in to comment.