mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 14:22:40 +01:00
update guetzli/Dockerfile
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
@@ -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" ]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user