Skip to content

Commit b5d6dcd

Browse files
Merge pull request #53 from developmentseed/morelibs
add libjpeg turbo
2 parents e859f2f + 803bad4 commit b5d6dcd

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL authors="Matthew Hanson <matt.a.hanson@gmail.com>"
66
# install system libraries
77
RUN \
88
yum makecache fast; \
9-
yum install -y wget libpng-devel; \
9+
yum install -y wget libpng-devel nasm; \
1010
yum install -y bash-completion --enablerepo=epel; \
1111
yum clean all; \
1212
yum autoremove
@@ -22,11 +22,12 @@ ENV \
2222
NETCDF_VERSION=4.6.2 \
2323
NGHTTP2_VERSION=1.35.1 \
2424
OPENJPEG_VERSION=2.3.0 \
25+
LIBJPEG_TURBO_VERSION=2.0.1 \
2526
PKGCONFIG_VERSION=0.29.2 \
2627
PROJ_VERSION=5.2.0 \
2728
SZIP_VERSION=2.1.1 \
28-
WEBP_VERSION=1.0.0 \
29-
ZSTD_VERSION=1.3.4
29+
WEBP_VERSION=1.0.1 \
30+
ZSTD_VERSION=1.3.8
3031

3132
# Paths to things
3233
ENV \
@@ -153,6 +154,15 @@ RUN \
153154
make -j ${NPROC} install; \
154155
cd ../..; rm -rf openjpeg
155156

157+
# jpeg_turbo
158+
RUN \
159+
mkdir jpeg; \
160+
wget -qO- https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${LIBJPEG_TURBO_VERSION}.tar.gz \
161+
| tar xvz -C jpeg --strip-components=1; jpeg; \
162+
cmake -G"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$PREFIX .; \
163+
make -j $(nproc) install; \
164+
cd ..; rm -rf jpeg
165+
156166
# geotiff
157167
RUN \
158168
mkdir geotiff; \
@@ -179,6 +189,7 @@ RUN \
179189
--with-netcdf=${PREFIX} \
180190
--with-webp=${PREFIX} \
181191
--with-zstd=${PREFIX} \
192+
--with-jpeg=${PREFIX} \
182193
--with-threads=yes \
183194
--with-curl=${PREFIX}/bin/curl-config \
184195
--without-python \

0 commit comments

Comments
 (0)