-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-experimental
19 lines (16 loc) · 1.08 KB
/
Dockerfile-experimental
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:14.9-buster-slim
# Libvips Compile with libimagequant and giflib
ENV LIBVIPS_VERSION=8.10.1
RUN apt-get -y update && \
apt-get -y --no-install-recommends install ca-certificates wget make g++ build-essential libtool libimagequant0 libimagequant-dev libgif-dev pkg-config libglib2.0-dev libexpat1-dev libgsf-1-dev libtiff5-dev libpng-dev libjpeg62-turbo-dev libjpeg-dev libexif-dev imagemagick && \
cd /tmp && \
wget "https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz" && \
tar xf "vips-${LIBVIPS_VERSION}.tar.gz" && \
cd "vips-${LIBVIPS_VERSION}" && \
./configure && \
make install && \
ldconfig /usr/local/lib && \
apt-get -y purge ca-certificates wget make g++ build-essential libtool libimagequant-dev libgif-dev pkg-config libglib2.0-dev libexpat1-dev libgsf-1-dev libtiff5-dev libpng-dev libjpeg62-turbo-dev libjpeg-dev libexif-dev && \
apt-get -y --purge autoremove && \
apt-get -y clean && \
rm -rf /usr/share/doc /usr/share/man /var/lib/apt/lists/* /root/* /tmp/* /var/tmp/*