Skip to content

Instantly share code, notes, and snippets.

@maxcnunes
Last active August 29, 2015 13:58
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 maxcnunes/9956342 to your computer and use it in GitHub Desktop.
Save maxcnunes/9956342 to your computer and use it in GitHub Desktop.
docker build .
Uploading context 4.096 kB
Uploading context
Step 0 : FROM ubuntu
---> 9cd978db300e
Step 1 : MAINTAINER Max Claus Nunes
---> Using cache
---> 987fcecff08b
Step 2 : RUN apt-get install -y python-software-properties python
---> Running in b9ceb62a54d3
2014/04/03 14:09:14 no such file or directory
2014/04/03 11:09:14 The command [/bin/sh -c apt-get install -y python-software-properties python] returned a non-zero code: 1
FROM ubuntu
MAINTAINER Max Claus Nunes
RUN apt-get install -y python-software-properties python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
RUN mkdir /var/www
ADD app.js /var/www/app.js
CMD ["/usr/bin/node", "/var/www/app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment