Created
March 8, 2016 10:08
-
-
Save panggi/bf61edb9ff1cca60e23e to your computer and use it in GitHub Desktop.
Dockerfile that take NODE_ENV as argument
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 mhart/alpine-node:4 | |
| # Create app directory | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| # Install app dependencies | |
| COPY package.json /usr/src/app/ | |
| # Bundle app source | |
| COPY . /usr/src/app | |
| EXPOSE 5858 | |
| ARG NODE=sandbox | |
| ENV NODE_ENV ${NODE} | |
| CMD [ "node", "app.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment