content: FROM alpine:3.12
  
  ARG VIPS_VERSION=8.12.2
  RUN set -x -o pipefail \
      && wget -O- https://github.com/libvips/libvips/releases/download/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.gz | tar xzC /tmp \
      && apk update \
      && apk upgrade \
      && apk add \
      libc6-compat \
      exiftool \
      zlib libxml2 glib gobject-introspection \
      libjpeg-turbo libexif lcms2 fftw giflib libpng \
      libwebp orc tiff poppler-glib librsvg libgsf openexr \
      libheif libimagequant pango \
      && apk add --virtual vips-dependencies build-base \
      zlib-dev libxml2-dev glib-dev gobject-introspection-dev \
      libjpeg-turbo-dev libexif-dev lcms2-dev fftw-dev giflib-dev libpng-dev \
      libwebp-dev orc-dev tiff-dev poppler-dev librsvg-dev libgsf-dev openexr-dev \
      libheif-dev libimagequant-dev pango-dev \
      && cd /tmp/vips-${VIPS_VERSION} \
      && ./configure --prefix=/usr \
                     --disable-static \
                     --disable-dependency-tracking \
                     --enable-silent-rules \
      && make -s install-strip \
      && cd $OLDPWD \
      && rm -rf /tmp/vips-${VIPS_VERSION} \
      && apk del --purge vips-dependencies \
      && rm -rf /var/cache/apk/*
  
  WORKDIR /app
  COPY capycmd .
  
  ENTRYPOINT ["/app/capycmd"]