cafy icon indicating copy to clipboard operation
cafy copied to clipboard

Add Docker Image

Open Azrael-Masters opened this issue 4 years ago • 4 comments

Its faster and easier to deploy a Demo / Dev-Enviroment, which works under different Operation Systems. I tested this additions to the project with my Raspberry Pi 4, which is hosting my SmartHome Components like OpenHAB or NodeRed. Hopefully my OpenHAB can run Cafy-Commands soon 🥇

Looking forward to test and contribute 👍

Azrael-Masters avatar Jan 13 '21 16:01 Azrael-Masters

@Azrael-Masters why do you install noble? I see it is part of the dependencies.

@manekinekko is there a way to reduce some of the depndencies? e.g., is prettier needed to the functionality of the module?

eyalcha avatar Jan 29 '21 08:01 eyalcha

@eyalcha prettier is only needed for development. Btw, when the Cafy package is stable enough, I will publish it on npm so you don't have to clone this repo.

manekinekko avatar Jan 29 '21 08:01 manekinekko

@Azrael-Masters Can you please explain why you added @abandonware/bluetooth-hci-socket ?

eyalcha avatar Jan 29 '21 11:01 eyalcha

This is my Dockefile to run on raspberry pi.

FROM node:14
LABEL maintainer="Eyal Cohen"

RUN npm install -g node-gyp

WORKDIR /app

COPY package*.json ./

COPY . .

RUN npm i

CMD ["npm", "start"]

eyalcha avatar Jan 29 '21 21:01 eyalcha