Skip to content

Commit

Permalink
Add guetzli (jessfraz#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
koep authored and jessfraz committed Mar 23, 2017
1 parent 12c0687 commit 5139a76
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions guetzli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"

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" ]
Binary file added guetzli/example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5139a76

Please sign in to comment.