Docker image to work with Gulp, npm and bower
1.3K
Docker image to work with npm, gulp and bower stack. You can use it to work with, for example, AngularJS.
You have to install Docker following the installation steps (choose your OS).
There are two options to build the image:
You can build the app from this directory running:
docker build -t agomezmoron/docker-gulp-angular .
You can pull the image from Docker:
docker pull agomezmoron/docker-gulp
Run the image with the following command:
docker run --privileged -v /YOUR/SOURCES/FOLDER:/src -p 90:8080 -e GULP_TASK="YOUR_GULP_TASK" -d -t -i agomezmoron/docker-gulp
or
docker run --privileged -v /YOUR/SOURCES/FOLDER:/src -p 90:8080 -e GULP_TASK="YOUR_GULP_TASK" -t -i agomezmoron/docker-gulp
And you will have your docker running on the 90 port.
Once Docker is running our image, there is a way to stop it:
If you want to clean all the untagged images you have in your Docker you can perform:
docker rmi -f $(docker images -f "dangling=true" -q) &> /dev/null
and it will detelete all the past images of the builds, so the PC does not end up with several duplicated images. It can be removed without affecting the build.
Content type
Image
Digest
Size
208.6 MB
Last updated
about 10 years ago
docker pull agomezmoron/docker-gulp