Created
September 4, 2014 16:32
-
-
Save gangster/73a3128495cdf167ff70 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
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