justadudewhohacks / opencv-express

Template for using opencv-3.4.1 + opencv-contrib with express.js and docker
MIT License
69 stars 38 forks source link

Run on a Raspberry pi #8

Open alcalawil opened 5 years ago

alcalawil commented 5 years ago

I managed to make it work on a Raspberry pi using this Dockerfile..

FROM mohaseeb/raspberrypi3-python-opencv:3.4.1

ENV OPENCV4NODEJS_DISABLE_AUTOBUILD=1

RUN curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - && sudo apt install -y nodejs

WORKDIR /app

COPY ./package.json /app/package.json

RUN npm install -g nodemon && npm install

COPY ./src /app/src

CMD ["nodemon", "-L", "./src/server.js"]