1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +02:00
imgproxy/Dockerfile

30 lines
917 B
Docker
Raw Normal View History

2017-07-01 07:59:10 +02:00
FROM alpine:edge
2018-10-25 18:25:54 +02:00
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
2017-07-01 07:59:10 +02:00
ENV GOPATH /go
ENV PATH /usr/local/go/bin:$PATH
ADD . /go/src/github.com/DarthSim/imgproxy
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
2018-10-25 18:25:54 +02:00
&& apk --no-cache upgrade \
2017-09-15 12:46:12 +02:00
&& apk add --no-cache --virtual .build-deps go gcc musl-dev fftw-dev vips-dev \
2017-07-01 07:59:10 +02:00
&& cd /go/src/github.com/DarthSim/imgproxy \
&& CGO_LDFLAGS_ALLOW="-s|-w" go build -v -o /usr/local/bin/imgproxy \
2017-07-01 07:59:10 +02:00
&& 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
FROM alpine:edge
2018-10-25 18:25:54 +02:00
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
2018-10-25 18:25:54 +02:00
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk --no-cache upgrade \
&& apk add --no-cache ca-certificates bash vips \
&& rm -rf /var/cache/apk*
COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin
2017-07-01 07:59:10 +02:00
CMD ["imgproxy"]
EXPOSE 8080