Created
December 27, 2015 05:42
-
-
Save Macrofig/0e3402f4f7ace44845c8 to your computer and use it in GitHub Desktop.
Dockerfile for DoneJS
This file contains hidden or 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
| node_modules* |
This file contains hidden or 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: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