Skip to content

Commit

Permalink
Simplify Dockerfile by moving most of VIPS configure flags into prein…
Browse files Browse the repository at this point in the history
…stall.sh.
  • Loading branch information
Aaron Hopkins committed Jun 6, 2018
1 parent da71ddf commit de428d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ RUN install -D /etc/passwd /export/etc/passwd


# Apt-get our dependencies, download, build, and install VIPS, and download and install Go. # Apt-get our dependencies, download, build, and install VIPS, and download and install Go.
ADD preinstall.sh /app/src/github.com/die-net/fotomat/ ADD preinstall.sh /app/src/github.com/die-net/fotomat/
RUN DEBIAN_FRONTEND=noninteractive CFLAGS="-O2 -ftree-vectorize -msse2 -ffast-math -fPIC" \ RUN DEBIAN_FRONTEND=noninteractive CFLAGS="-O2 -ftree-vectorize -msse2 -ffast-math" \
VIPS_OPTIONS="--prefix=/usr --disable-gtk-doc-html --disable-pyvips8 --without-analyze --without-cfitsio --without-fftw --without-gsf --without-matio --without-openslide --without-orc --without-pangoft2 --without-magick --without-ppm --without-python --without-radiance --without-tiff --without-x" \ VIPS_OPTIONS="--prefix=/usr" \
/app/src/github.com/die-net/fotomat/preinstall.sh /app/src/github.com/die-net/fotomat/preinstall.sh


# Add the rest of our code. # Add the rest of our code.
Expand Down
9 changes: 7 additions & 2 deletions preinstall.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ else
mkdir vips-$VIPS_VERSION mkdir vips-$VIPS_VERSION
curl -sSL "$url" | tar --strip-components=1 -C vips-$VIPS_VERSION -xzf - curl -sSL "$url" | tar --strip-components=1 -C vips-$VIPS_VERSION -xzf -
cd vips-$VIPS_VERSION cd vips-$VIPS_VERSION
./configure --disable-debug --disable-dependency-tracking --disable-static --without-orc --without-magick \ ./configure
--disable-debug --disable-dependency-tracking --disable-gtk-doc-html \
--disable-pyvips8 --disable-static --without-analyze --without-cfitsio \
--without-fftw --without-gsf --without-magick --without-matio \
--without-openslide --without-orc --without-pangoft2 --without-ppm \
--without-python --without-radiance --without-tiff --without-x \
--with-OpenEXR --with-jpeg --with-lcms --with-libexif --with-giflib \ --with-OpenEXR --with-jpeg --with-lcms --with-libexif --with-giflib \
--with-tiff --with-libwebp --with-png ${VIPS_OPTIONS:-} --with-libwebp --with-png ${VIPS_OPTIONS:-}
make -j $( getconf _NPROCESSORS_ONLN 2> /dev/null || echo 1 ) make -j $( getconf _NPROCESSORS_ONLN 2> /dev/null || echo 1 )
make install make install
cd .. cd ..
Expand Down

0 comments on commit de428d8

Please sign in to comment.