Compare commits

..

No commits in common. "master" and "1.0" have entirely different histories.
master ... 1.0

2 changed files with 20 additions and 8 deletions

View File

@ -6,23 +6,35 @@ FROM alpine:3.5
# libpng # libpng
# Dev & build # Dev & build
ARG GUETZLI_VERSION=v1.0.1 ARG GFLAGS_VERSION=v2.2.0
ARG GUETZLI_VERSION=v1.0
RUN \ RUN \
apk add --no-cache --virtual .build-deps \ apk add --no-cache --virtual .build-deps \
alpine-sdk \
cmake \
coreutils \
git \
libpng-dev \ libpng-dev \
zlib-dev \ alpine-sdk \
git \
coreutils \
cmake \
&&\ &&\
\
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="-static -lpng -lz -lm" \ LDFLAGS="-L/opt/build/usr/local/lib -static" \
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.1`: Latest stable version. - `latest`, `1`, `1.0`: Latest stable version.
## Examples ## Examples