Skip to content

tomasswood/docker-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Docker Webpack

Webpack development and build environment running in a Node container

Installing the Image

Create the docker image from the Dockerfile or pull the latest from the docker repository

docker build -t webpack . or docker pull tomasswood/webpack

Map the source repository to the image and run npm install. Note yarn install is also supported.

docker run -it -v /path/to/src:/app tomasswood/webpack npm install --no-bin-links

Run your Webpack build script

docker run -it --rm -v /path/to/src:/app tomasswood/webpack webpack

Run your Webpack dev server

docker run -it --rm -v /path/to/src:/app -p 3000:8080 tomasswood/webpack webpack-dev-server --hot --inline --progress --host 0.0.0.0

About

Webpack environment as a docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published