Skip to content

Instantly share code, notes, and snippets.

@steam0
Last active April 22, 2016 08:35
Show Gist options
  • Save steam0/371fb2cb9326c2c8ce8097984f61124f to your computer and use it in GitHub Desktop.
Save steam0/371fb2cb9326c2c8ce8097984f61124f to your computer and use it in GitHub Desktop.
#Download OS
FROM resin/rpi-raspbian
# Install CURL
RUN apt-get update
RUN apt-get install --yes curl
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash -
# Install Node.js and npm
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential
RUN apt-get install --yes npm
# Install app dependencies
COPY package.json /src/package.json
RUN cd /src; npm install
# Bundle app source
COPY webapp.js /src/
EXPOSE 3000
CMD ["node", "/src/webapp.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment