Skip to content

Instantly share code, notes, and snippets.

@brancusi
Created March 20, 2017 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brancusi/a181ab634c62ff5dfb358c494d1cc823 to your computer and use it in GitHub Desktop.
Save brancusi/a181ab634c62ff5dfb358c494d1cc823 to your computer and use it in GitHub Desktop.
FROM resin/raspberrypi3-node
ENV APP_BASE /usr/src/app
RUN mkdir -p $APP_BASE
WORKDIR $APP_BASE
# Install image tools
RUN apt-get update && apt-get install -y \
bluez bluez-firmware \
alsa-utils libasound2-dev mpg321 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY package.json $APP_BASE/
RUN DEBIAN_FRONTEND=noninteractive JOBS=MAX npm install --unsafe-perm
ENV INITSYSTEM on
COPY . $APP_BASE
CMD [ "node", "index.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment