Dockerfile for cmcdev.
Docker Image cmcdev/web
is built on a minimal Ubuntu image.
With node
, bower
, Sass
and gulp
pre-installed, this images is suitable for front end development.
Place gulpfile.json
(and docker-compose.yml
) in project folder (refer to the "sample" folder). Change the working directory to project folder. Then run one of the following command.
- Docker run
docker run -it --name web --rm -p 3000:3000 --mount type=bind,source=\"$(pwd)\",target= -w /www/web cmcdev/web sh
- Docker-compose
docker-compose up
Continue on to run bower
and gulp
commands if needed.
docker run --rm -t -e var=save --name puppeteer -p 2000:2000 --cap-add SYS_ADMIN --mount type=bind,source=\"$(pwd)\",target=/home/chrome puppeteer node test/puppeteer/puppeteer.js
Copy this Repo, replace the web/package.json
with yours, change the working directory to web/
folder, and do
docker build -t image_name .
This project is available under the MIT license.