Skip to content

Instantly share code, notes, and snippets.

@giavac
Last active August 29, 2015 14:13
Show Gist options
  • Save giavac/62e4766cbb7f911aceb9 to your computer and use it in GitHub Desktop.
Save giavac/62e4766cbb7f911aceb9 to your computer and use it in GitHub Desktop.
Dockerfile for node.js with WebSocket module and server app
FROM ubuntu:14.04
MAINTAINER Giacomo Vacca "[email protected]"
ENV REFRESHED_AT 2015-01-19
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y nodejs
# needs this to find the nodejs exec
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN apt-get install -y npm
RUN /usr/bin/npm install ws
EXPOSE 8080
ENTRYPOINT ["/usr/bin/node", "/root/server.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment