wble/Dockerfile

9 lines
297 B
Docker
Raw Normal View History

FROM node:22-bookworm
RUN apt update && apt install -y bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin && apt clean
RUN setcap cap_net_raw+eip $(eval readlink -f `which node`)
USER node
COPY --chown=node:node ./wble /wble
WORKDIR /wble
RUN yarn && yarn build
ENTRYPOINT ["yarn", "start"]