2017-07-01 07:59:10 +02:00
|
|
|
FROM alpine:edge
|
|
|
|
MAINTAINER Sergey Aleksandrovich <darthsim@gmail.com>
|
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH /usr/local/go/bin:$PATH
|
|
|
|
|
|
|
|
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
|
|
|
|
|
|
|
ADD . /go/src/github.com/DarthSim/imgproxy
|
|
|
|
|
|
|
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
2017-07-03 12:52:13 +02:00
|
|
|
&& apk add --no-cache --update bash vips ca-certificates \
|
2017-07-04 16:07:51 +02:00
|
|
|
&& apk add --no-cache --virtual .build-deps go=1.8.3-r0 gcc musl-dev fftw-dev vips-dev \
|
2017-07-01 07:59:10 +02:00
|
|
|
&& cd /go/src/github.com/DarthSim/imgproxy \
|
|
|
|
&& go build -v -o /usr/local/bin/imgproxy \
|
|
|
|
&& apk del --purge .build-deps \
|
2017-07-04 16:07:51 +02:00
|
|
|
&& rm -rf /var/cache/apk*
|
2017-07-01 07:59:10 +02:00
|
|
|
|
|
|
|
CMD ["imgproxy"]
|
|
|
|
|
|
|
|
EXPOSE 8080
|