Created
April 12, 2017 00:34
-
-
Save thulioph/79a09c21fcbdba4e2f7d3b84c17a69dc to your computer and use it in GitHub Desktop.
Dockerfile example.
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:boron | |
| # Create app directory | |
| RUN mkdir -p /usr/src/veggiemap | |
| WORKDIR /usr/src/veggiemap | |
| # Install app dependencies | |
| # RUN npm install -g webpack karma http-server | |
| RUN git clone https://github.com/starkland/veggiemap.git . | |
| RUN npm install | |
| RUN npm uninstall webpack --save-dev | |
| RUN npm install webpack@2.2.0 --save-dev | |
| # Bundle app source | |
| COPY . /usr/src/veggiemap | |
| # Mapped the port by docker daemon | |
| EXPOSE 8080 | |
| # Run the commands | |
| CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment