Webpack in a container
$ docker pull krisgray/webpack
Note: Assumes that default webpack.config.js exists at source root.
$ docker run \
--rm \
-i \
-t \
-v /path/to/source:/app \
-p 8080:8080 \
krisgray/webpack \
webpack-dev-server --hot --inline --progress --host 0.0.0.0
An example of building the dist.
Note: Assumes that default webpack.config.js exists at source root.
$ docker run \
--rm \
-i \
-t \
-v /path/to/source:/app \
krisgray/webpack \
webpack
Content type
Image
Digest
Size
252.9 MB
Last updated
almost 10 years ago
docker pull krisgray/docker-webpack