wble/Dockerfile
ale d9a76c9a9f
initial commit
Signed-off-by: ale <ale@manalejandro.com>
2024-12-01 16:36:36 +01:00

9 lines
297 B
Docker

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"]