Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created December 5, 2014 15:16
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 anoochit/dbea4bc0e83cf685e8a4 to your computer and use it in GitHub Desktop.
Save anoochit/dbea4bc0e83cf685e8a4 to your computer and use it in GitHub Desktop.
2048 nodejs game
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get install -y nginx zip curl
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN curl -o /usr/share/nginx/www/master.zip -L https://codeload.github.com/gabrielecirulli/2048/zip/master
RUN cd /usr/share/nginx/www/ && unzip master.zip && mv 2048-master/* . && rm -rf 2048-master master.zip
EXPOSE 80
CMD ["/usr/sbin/nginx", "-c", "/etc/nginx/nginx.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment