image-transformer/Dockerfile

15 lines
494 B
Docker
Raw Normal View History

2019-01-08 23:05:20 +00:00
FROM golang:latest
RUN apt -y update && \
apt -y upgrade && \
apt -y install libglib2.0-dev libexpat1-dev libjpeg-dev libpng-dev libgif-dev
2019-07-31 05:06:38 +00:00
WORKDIR /go/src/image-transformer
2019-01-08 23:05:20 +00:00
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 && \
2019-01-08 23:05:20 +00:00
./configure && \
make && \
2019-01-09 08:36:29 +00:00
make install && \
2019-01-13 20:09:53 +00:00
ldconfig
RUN go get -v -u github.com/davidbyttow/govips/v2/vips && go install -v ./...