diff --git a/guetzli/Dockerfile b/guetzli/Dockerfile new file mode 100644 index 0000000..a4bd0db --- /dev/null +++ b/guetzli/Dockerfile @@ -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 " + +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" ] diff --git a/guetzli/example.jpg b/guetzli/example.jpg new file mode 100644 index 0000000..82f8aa6 Binary files /dev/null and b/guetzli/example.jpg differ