mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-16 00:59:07 +02:00
Add a SVGO Docker image
This commit is contained in:
parent
3af76b75d3
commit
32993385da
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
Dockerfile
|
||||
README.md
|
||||
icons/*
|
@ -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
|
||||
|
||||
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM node:6
|
||||
|
||||
WORKDIR /work
|
||||
COPY package*.json /work/
|
||||
RUN npm install
|
||||
|
||||
COPY * /work/
|
||||
ENTRYPOINT [ "npm", "run", "svgo", "--", "/image.svg" ]
|
Loading…
Reference in New Issue
Block a user