mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
Add guetzli (#248)
This commit is contained in:
parent
12c06870f3
commit
5139a769a1
37
guetzli/Dockerfile
Normal file
37
guetzli/Dockerfile
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# guetzli
|
||||||
|
#
|
||||||
|
# docker run \
|
||||||
|
# --rm \
|
||||||
|
# -i \
|
||||||
|
# -t \
|
||||||
|
# -v ${PWD}:/tmp \
|
||||||
|
# guetzli:latest \
|
||||||
|
# --verbose /tmp/example.jpg /tmp/example.compressed.jpg
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
LABEL maintainer "Christian Koep <christian.koep@fom-net.de>"
|
||||||
|
|
||||||
|
ENV GUETZLI_VERSION v1.0.1
|
||||||
|
ENV APPDIR /usr/src/guetzli
|
||||||
|
|
||||||
|
RUN buildDeps=' \
|
||||||
|
g++ \
|
||||||
|
git \
|
||||||
|
libpng-dev \
|
||||||
|
make \
|
||||||
|
' \
|
||||||
|
set -x \
|
||||||
|
&& apk --no-cache add $buildDeps \
|
||||||
|
&& git clone --depth 1 --branch ${GUETZLI_VERSION} https://github.com/google/guetzli.git ${APPDIR} \
|
||||||
|
&& cd ${APPDIR} \
|
||||||
|
&& make \
|
||||||
|
&& apk del $buildDeps \
|
||||||
|
&& mv ${APPDIR}/bin/Release/guetzli /usr/local/bin/guetzli && rm -rf ${APPDIR} \
|
||||||
|
&& echo "Build complete."
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
libpng \
|
||||||
|
libstdc++ \
|
||||||
|
libgcc
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/usr/local/bin/guetzli" ]
|
BIN
guetzli/example.jpg
Normal file
BIN
guetzli/example.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
Loading…
Reference in New Issue
Block a user