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
2 changed files with 26 additions and 25 deletions

View File

@@ -1,16 +1,18 @@
# guetzli # guetzli
# #
# docker run \ # docker run --rm -it \
# --rm \
# -i \
# -t \
# -v ${PWD}:/tmp \ # -v ${PWD}:/tmp \
# guetzli:latest \ # r.j3ss.co/guetzli:latest \
# --verbose /tmp/example.jpg /tmp/example.compressed.jpg # --verbose /tmp/example.jpg /tmp/example.compressed.jpg
FROM alpine:latest FROM alpine:latest
LABEL maintainer "Christian Koep <christian.koep@fom-net.de>" LABEL maintainer "Christian Koep <christian.koep@fom-net.de>"
RUN apk --no-cache add \
libpng \
libstdc++ \
libgcc
ENV GUETZLI_VERSION v1.0.1 ENV GUETZLI_VERSION v1.0.1
ENV APPDIR /usr/src/guetzli ENV APPDIR /usr/src/guetzli
@@ -22,16 +24,14 @@ RUN buildDeps=' \
' \ ' \
set -x \ set -x \
&& apk --no-cache add $buildDeps \ && apk --no-cache add $buildDeps \
&& git clone --depth 1 --branch ${GUETZLI_VERSION} https://github.com/google/guetzli.git ${APPDIR} \ && git clone --depth 1 --branch "${GUETZLI_VERSION}" "https://github.com/google/guetzli.git" "${APPDIR}" \
&& cd ${APPDIR} \ && ( \
cd "${APPDIR}" \
&& make \ && make \
&& mv "${APPDIR}/bin/Release/guetzli" /usr/local/bin/guetzli \
) \
&& apk del $buildDeps \ && apk del $buildDeps \
&& mv ${APPDIR}/bin/Release/guetzli /usr/local/bin/guetzli && rm -rf ${APPDIR} \ && rm -rf "${APPDIR}" \
&& echo "Build complete." && echo "Build complete."
RUN apk --no-cache add \
libpng \
libstdc++ \
libgcc
ENTRYPOINT [ "/usr/local/bin/guetzli" ] ENTRYPOINT [ "/usr/local/bin/guetzli" ]

View File

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