update guetzli/Dockerfile

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-03-24 10:39:31 -07:00
parent 5139a769a1
commit 420323634a
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 26 additions and 25 deletions

View File

@ -1,37 +1,37 @@
# guetzli
#
# docker run \
# --rm \
# -i \
# -t \
# -v ${PWD}:/tmp \
# guetzli:latest \
# --verbose /tmp/example.jpg /tmp/example.compressed.jpg
# docker run --rm -it \
# -v ${PWD}:/tmp \
# r.j3ss.co/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
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 \
&& mv "${APPDIR}/bin/Release/guetzli" /usr/local/bin/guetzli \
) \
&& apk del $buildDeps \
&& rm -rf "${APPDIR}" \
&& echo "Build complete."
ENTRYPOINT [ "/usr/local/bin/guetzli" ]

View File

@ -59,6 +59,7 @@ CouchPotato/CouchPotatoServer
pooler/cpuminer
curl/curl
opendnssec/SoftHSMv2
google/guetzli
irssi/irssi
zyedidia/micro
bitly/oauth2_proxy