0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-30 22:34:18 -05:00

dockerfile: use go 1.9

- setting myself as maintainer.  I've played with docker enough at this
point that I feel a bit more comfortable maintaining this
- name the build image
This commit is contained in:
Will Norris 2017-10-07 03:07:07 +00:00
parent 837e72352f
commit e7f9017674

View file

@ -1,5 +1,5 @@
FROM golang:1.8 FROM golang:1.9 as build
MAINTAINER Sevki <s@sevki.org> MAINTAINER Will Norris <will@willnorris.com>
WORKDIR /go/src/willnorris.com/go/imageproxy WORKDIR /go/src/willnorris.com/go/imageproxy
ADD . . ADD . .
@ -12,9 +12,9 @@ FROM scratch
WORKDIR /go/bin WORKDIR /go/bin
COPY --from=0 /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=0 /etc/ssl/certs /etc/ssl/certs COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=0 /go/bin/imageproxy . COPY --from=build /go/bin/imageproxy .
CMD ["-addr", "0.0.0.0:8080"] CMD ["-addr", "0.0.0.0:8080"]
ENTRYPOINT ["/go/bin/imageproxy"] ENTRYPOINT ["/go/bin/imageproxy"]