Sign inSign up

krisgray/docker-webpack

By krisgray

Updated almost 10 years ago

Webpack in a container

Image
0

391

krisgray/docker-webpack repository overview

krisgray/docker-webpack

Webpack in a container

$ docker pull krisgray/webpack

Example: Serve dev

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
Example: Build

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

Tag summary

Content type

Image

Digest

Size

252.9 MB

Last updated

almost 10 years ago

docker pull krisgray/docker-webpack