A Docker image for compiling frontend assets
1.3K
A Docker image for compiling frontend assets.
Add some scripts to your project’s package.json:
{
"name": "your-project",
"scripts": {
"start": "webpack --config config/webpack.dev.js --watch --progress --profile --bail",
"build": "webpack --config config/webpack.prod.js --progress --profile --bail"
},
}
Then run this container. Make sure to mount your project directory into /app,
which will run npm install and npm run:
docker run -it -v `pwd`:/app driebit/node
npm info it worked if it ends with ok
...
Content type
Image
Digest
Size
21.6 MB
Last updated
about 9 years ago
docker pull driebit/node