Skip to content

Instantly share code, notes, and snippets.

@Macrofig
Created December 27, 2015 05:42
Show Gist options
  • Select an option

  • Save Macrofig/0e3402f4f7ace44845c8 to your computer and use it in GitHub Desktop.

Select an option

Save Macrofig/0e3402f4f7ace44845c8 to your computer and use it in GitHub Desktop.
Dockerfile for DoneJS
FROM node:4.2.4
# Copy package file in order to install deps
COPY package.json /src/package.json
# Install deps
RUN cd /src; npm install
# Copy source files
COPY . /src
# Expose port 8080 to the container
EXPOSE 8080
# Command to run with `docker run`
CMD cd /src; ./node_modules/.bin/can-serve --port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment