2019-01-08 23:05:20 +00:00
|
|
|
FROM golang:latest
|
|
|
|
|
|
|
|
MAINTAINER Andreas Neue <an@dnix.de>
|
|
|
|
|
|
|
|
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-resizer
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN wget https://github.com/libvips/libvips/releases/download/v8.7.3/vips-8.7.3.tar.gz && \
|
|
|
|
tar xvzf vips-8.7.3.tar.gz && \
|
|
|
|
cd vips-8.7.3 && \
|
|
|
|
./configure && \
|
|
|
|
make && \
|
2019-01-09 08:36:29 +00:00
|
|
|
make install && \
|
|
|
|
go get -v -u github.com/davidbyttow/govips/pkg/vips && \
|
|
|
|
go install -v ./...
|
2019-01-08 23:05:20 +00:00
|
|
|
|
2019-01-09 08:36:29 +00:00
|
|
|
CMD ["image-resizer", "-s", "https://images.example.com/"]
|