Skip to content

Commit

Permalink
Merge pull request #147 from saulshanabrook/feature/docker
Browse files Browse the repository at this point in the history
add docker image support
  • Loading branch information
papandreou committed Nov 24, 2014
2 parents fa905e9 + a03b592 commit 4b2e0ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node

RUN apt-get update
RUN apt-get install -y --no-install-recommends libcairo2-dev libgif-dev optipng pngcrush pngquant libpango1.0-dev graphicsmagick libjpeg-turbo-progs inkscape libvips-dev libgsf-1-dev
RUN npm install -g assetgraph-builder

ENTRYPOINT ["/usr/local/bin/buildProduction"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ Looking for a Grunt integration? Try [grunt-reduce](https://github.com/Munter/gr
Quick start
-----------

# Conventional
```
npm install -g assetgraph-builder
buildProduction path/to/your/index.html --outroot path/to/output/directory
```

# [Docker](https://www.docker.com/)
```
docker run --rm -it -v "$(pwd)":/app/ -w /app/ assetgraph-builder path/to/your/index.html --outroot path/to/output/directory
```

Congratulations, you just optimized your web page!

Features
Expand Down

0 comments on commit 4b2e0ae

Please sign in to comment.