Created
January 23, 2017 20:26
-
-
Save ozantunca/df948995e4324800f9a3928289b6ecb9 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 node:5.10 | |
RUN apt-get -y update && apt-get clean | |
RUN apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3 && \ | |
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | |
apt-get update && apt-get install yarn | |
RUN yarn global add pm2 | |
ADD . /srv/www | |
WORKDIR /srv/www | |
RUN yarn && yarn cache clean | |
EXPOSE 3000 | |
CMD ["npm", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment