Skip to content

Instantly share code, notes, and snippets.

@gangster
Created September 4, 2014 16:32
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 gangster/73a3128495cdf167ff70 to your computer and use it in GitHub Desktop.
Save gangster/73a3128495cdf167ff70 to your computer and use it in GitHub Desktop.
FROM dockerfile/ubuntu
# Install node.js and forever
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get -y install nodejs
RUN npm -g update npm
RUN npm install -g forever
# Install npm package
ADD code/package.json /code/package.json
RUN npm install --prefix /code
# Add run script
ADD ./start.sh /start.sh
RUN chmod 755 /start.sh
ADD code /code
EXPOSE 3000
CMD ["/bin/bash", "/start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment