Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ganlanyuan/dockerfile

Dockerfile for cmcdev
https://github.com/ganlanyuan/dockerfile

bower dockerfile gulp node nodemon npm sass

Last synced: about 1 month ago
JSON representation

Dockerfile for cmcdev

Awesome Lists containing this project

README

        

# Dockerfile
Dockerfile for [cmcdev](https://hub.docker.com/u/cmcdev/).

## cmcdev/web
Docker Image `cmcdev/web` is built on a [minimal Ubuntu image](https://github.com/phusion/baseimage-docker).
With `node`, `bower`, `Sass` and `gulp` pre-installed, this images is suitable for front end development.

#### Usage
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.

## puppeteer
```
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
```

## Rebuild
Copy this Repo, replace the `web/package.json` with yours, change the working directory to `web/` folder, and do
```
docker build -t image_name .
```

## License
This project is available under the [MIT](https://opensource.org/licenses/mit-license.php) license.