FROM golang:latest RUN apt -y update && \ apt -y upgrade && \ apt -y install libglib2.0-dev libexpat1-dev libjpeg-dev libpng-dev libgif-dev WORKDIR /go/src/image-transformer COPY . . RUN wget https://github.com/libvips/libvips/releases/download/v8.10.6/vips-8.10.6.tar.gz && \ tar xvzf vips-8.10.6.tar.gz && \ cd vips-8.10.6 && \ ./configure && \ make && \ make install && \ ldconfig RUN go get -v -u github.com/davidbyttow/govips/v2/vips && go install -v ./...