2017-10-06 22:07:07 -05:00
|
|
|
FROM golang:1.9 as build
|
|
|
|
MAINTAINER Will Norris <will@willnorris.com>
|
2015-05-21 15:53:41 -05:00
|
|
|
|
2017-09-10 12:00:23 -05:00
|
|
|
WORKDIR /go/src/willnorris.com/go/imageproxy
|
|
|
|
ADD . .
|
2015-05-21 15:53:41 -05:00
|
|
|
|
2017-09-10 12:00:23 -05:00
|
|
|
WORKDIR /go/src/willnorris.com/go/imageproxy/cmd/imageproxy
|
|
|
|
RUN go-wrapper download
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go-wrapper install
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
WORKDIR /go/bin
|
|
|
|
|
2017-10-06 22:07:07 -05:00
|
|
|
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
|
|
|
COPY --from=build /etc/ssl/certs /etc/ssl/certs
|
|
|
|
COPY --from=build /go/bin/imageproxy .
|
2017-09-10 12:00:23 -05:00
|
|
|
|
|
|
|
CMD ["-addr", "0.0.0.0:8080"]
|
2015-12-08 04:21:53 -05:00
|
|
|
ENTRYPOINT ["/go/bin/imageproxy"]
|
2015-05-21 15:53:41 -05:00
|
|
|
|
|
|
|
EXPOSE 8080
|