I'm using webpack-dev-server for dev and a NODE_ENV=production webpack -p --progress --config ./webpack.prod.config.js
command for a test production build. The test production build outputs static files to a dist folder.
To Dockerise this application, initially, in the most simplest fashion coming from using webpack-dev-server for serving assets, should one either:
- serve up these static assets using an nginx image?
- create a node/express server (in the app) and use a node image?
Which implementation would scale best for both dev/prod environments and for it to be part of a AWS microservices architecture later on?
via lxm7
No comments:
Post a Comment