Compare commits

..

5 Commits
1.0 ... master

Author SHA1 Message Date
Icedream 14d25f8d59
Update readme. 2017-04-13 16:48:13 +02:00
Icedream 784f4d7737
Fix static build.
See https://github.com/google/guetzli/issues/146#issuecomment-290022456 for where this fix is coming from. It's a bit of a hack but it will do for now.
2017-04-13 16:38:17 +02:00
Icedream 2e79bd000c
Fix missing functions from zlib that the linker needs. 2017-04-13 16:27:58 +02:00
Icedream 74bdfa2441
Remove gflags dependency. 2017-04-13 16:27:28 +02:00
Icedream 9e4acc1b28
Update Guetzli to v1.0.1. 2017-04-13 16:18:01 +02:00
2 changed files with 7 additions and 19 deletions

View File

@ -6,35 +6,23 @@ FROM alpine:3.5
# libpng # libpng
# Dev & build # Dev & build
ARG GFLAGS_VERSION=v2.2.0 ARG GUETZLI_VERSION=v1.0.1
ARG GUETZLI_VERSION=v1.0
RUN \ RUN \
apk add --no-cache --virtual .build-deps \ apk add --no-cache --virtual .build-deps \
libpng-dev \
alpine-sdk \ alpine-sdk \
git \
coreutils \
cmake \ cmake \
coreutils \
git \
libpng-dev \
zlib-dev \
&&\ &&\
\
git clone "https://github.com/gflags/gflags.git" /var/tmp/gflags &&\
(cd /var/tmp/gflags &&\
git checkout "${GFLAGS_VERSION}" &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make -j$(nproc) all install DESTDIR="/opt/build" \
) &&\
\ \
git clone "https://github.com/google/guetzli.git" /var/tmp/guetzli &&\ git clone "https://github.com/google/guetzli.git" /var/tmp/guetzli &&\
(cd /var/tmp/guetzli &&\ (cd /var/tmp/guetzli &&\
git checkout "${GUETZLI_VERSION}" &&\ git checkout "${GUETZLI_VERSION}" &&\
make -j$(nproc) config=release \ make -j$(nproc) config=release \
TARGETDIR=/usr/local/bin \ TARGETDIR=/usr/local/bin \
LDFLAGS="-L/opt/build/usr/local/lib -static" \ LDFLAGS="-static -lpng -lz -lm" \
CXXFLAGS="-I/opt/build/usr/local/include" \
CFLAGS="-I/opt/build/usr/local/include" \
CPPFLAGS="-I/opt/build/usr/local/include" \
) &&\ ) &&\
\ \
apk del --no-cache .build-deps &&\ apk del --no-cache .build-deps &&\

View File

@ -7,7 +7,7 @@ so it is possible to use `docker run` on this image just as if you would use gue
All available tags are always listed [in Docker Hub](https://hub.docker.com/r/icedream/guetzli/tags), the list below explains the maintained tags: All available tags are always listed [in Docker Hub](https://hub.docker.com/r/icedream/guetzli/tags), the list below explains the maintained tags:
- `latest`, `1`, `1.0`: Latest stable version. - `latest`, `1`, `1.0.1`: Latest stable version.
## Examples ## Examples