Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
14d25f8d59 | |
|
784f4d7737 | |
|
2e79bd000c | |
|
74bdfa2441 | |
|
9e4acc1b28 |
24
Dockerfile
24
Dockerfile
|
@ -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 &&\
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue