Ajout icone de son custom avec un sprite SVG

This commit is contained in:
nyanloutre 2017-07-18 16:55:02 +02:00
parent 348b6642ce
commit 5cf74a1962
Signed by: nyanloutre
GPG key ID: F85D93686A3A9063
7 changed files with 89 additions and 5 deletions

View file

@ -1,7 +1,9 @@
FROM nginx:alpine
RUN sed -i 's/#gzip/gzip/g' /etc/nginx/nginx.conf && \
sed -i '/gzip *on/ a gzip_types text/css application/javascript image/svg+xml;' /etc/nginx/nginx.conf && \
apk add --no-cache sassc
apk add --no-cache sassc nodejs && \
npm install -g svg-sprite-generator
COPY . /usr/share/nginx/html
WORKDIR /usr/share/nginx/html
RUN sassc -m -t compressed /usr/share/nginx/html/scss/creative.scss /usr/share/nginx/html/css/creative.css
RUN sassc -m -t compressed scss/creative.scss css/creative.css && \
svg-sprite-generate -d vector/ -o vector/sprite.svg