Skip to content

Commit

Permalink
Sets NODE_ENV environment var to production when building docker im…
Browse files Browse the repository at this point in the history
…age. (kriasoft#1173)
  • Loading branch information
phpeek authored and langpavel committed Jun 19, 2018
1 parent 585a821 commit dfbf49f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ COPY ./build .
# Run the container under "node" user by default
USER node

# Set NODE_ENV env variable to "production" for faster expressjs
ENV NODE_ENV production

CMD [ "node", "server.js" ]

0 comments on commit dfbf49f

Please sign in to comment.