Created
April 1, 2018 01:26
-
-
Save dejanvasic85/8b452242eeaab3e877617dabfcd89331 to your computer and use it in GitHub Desktop.
Docker file for node
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 risingstack/alpine:3.4-v6.9.4-4.2.0 | |
| ARG APP_VERSION=local | |
| ENV PORT 3001 | |
| ENV APP_VERSION ${APP_VERSION} | |
| EXPOSE 3001 | |
| COPY package.json package.json | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| CMD ["node", "dist/"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment