Skip to content

Instantly share code, notes, and snippets.

@ozantunca
Created January 23, 2017 20:26
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 ozantunca/df948995e4324800f9a3928289b6ecb9 to your computer and use it in GitHub Desktop.
Save ozantunca/df948995e4324800f9a3928289b6ecb9 to your computer and use it in GitHub Desktop.
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