balena-dslr-js

A js tool to run on a pi zero w to control cameras via gphoto2
git clone git://archive.git.mtrnord.blog/balena-dslr/balena-dslr-js.git
Log | Files | Refs | README | LICENSE

Dockerfile.template (749B)


      1 FROM balenalib/%%BALENA_MACHINE_NAME%%-node:12
      2 
      3 ENV UDEV=on
      4 
      5 # Install dependencies
      6 RUN install_packages libgphoto2-dev gphoto2 python3 python2 build-essential uhubctl libudev-dev bluetooth bluez libbluetooth-dev libusb-1.0-0-dev
      7 
      8 RUN update-rc.d bluetooth remove
      9 
     10 # Defines our working directory in container
     11 WORKDIR /usr/src/app
     12 
     13 # Copies the package.json first for better cache on later pushes
     14 COPY package.json ./
     15 
     16 # This install npm dependencies on the balena build server,
     17 # making sure to clean up the artifacts it creates in order to reduce the image size.
     18 RUN JOBS=MAX npm install --unsafe-perm && npm cache verify
     19 
     20 # This will copy all files in our root to the working  directory in the container
     21 COPY . ./
     22 RUN npm run build
     23 
     24 CMD npm start