Skip to content

Commit

Permalink
Add a SVGO Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jul 15, 2019
1 parent 3af76b7 commit 3299338
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
@@ -0,0 +1,3 @@
Dockerfile
README.md
icons/*
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -83,6 +83,10 @@ All icons in Simple Icons have been optimized with the [SVGO tool](https://githu
* Set the precision to about 3, depending on if there is a loss of quality.
* Leave the remaining settings untouched (or reset them with the button at the bottom of the settings).
* Click the download button.
* The [SVGO Command Line Tool](https://github.com/svg/svgo) in Docker
* If none of the options above work for you, it is possible to build a Docker image for compressing the images
* Build: `docker build -t simple-icons/svgo-optimizer .`
* Run: `docker run --rm -v ${full local path}:/image.svg simple-icons/svgo-optimizer`

### 4. Annotate The Icon

Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
@@ -0,0 +1,8 @@
FROM node:6

WORKDIR /work
COPY package*.json /work/
RUN npm install

COPY * /work/
ENTRYPOINT [ "npm", "run", "svgo", "--", "/image.svg" ]

0 comments on commit 3299338

Please sign in to comment.