Last active
April 22, 2016 08:35
-
-
Save steam0/371fb2cb9326c2c8ce8097984f61124f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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