Reduce Docker image size

- Removed node_modules from client after compilation
 - Added copy-webpack-plugin to copy required JS and fonts to dist
 - Adjusted server to serve files from client/dist
 - add js-yaml to server packages in order to use npm install --production
This commit is contained in:
Markus Opolka 2019-12-05 12:00:07 +01:00
parent ed2655b78e
commit 43edf35637
7 changed files with 258 additions and 18 deletions

View file

@ -72,6 +72,7 @@
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.6",
"clean-css-cli": "^4.2.1",
"copy-webpack-plugin": "^5.0.5",
"css-loader": "^2.1.0",
"file-loader": "^3.0.1",
"node-sass": "^4.12.0",