0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
imageproxy/Dockerfile
Will Norris e7f9017674 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
2017-10-07 03:10:11 +00:00

22 lines
512 B
Docker

FROM golang:1.9 as build
MAINTAINER Will Norris <will@willnorris.com>
WORKDIR /go/src/willnorris.com/go/imageproxy
ADD . .
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
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /go/bin/imageproxy .
CMD ["-addr", "0.0.0.0:8080"]
ENTRYPOINT ["/go/bin/imageproxy"]
EXPOSE 8080