0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
imageproxy/Dockerfile

23 lines
477 B
Text
Raw Normal View History

FROM golang:1.8
2015-05-21 15:53:41 -05:00
MAINTAINER Sevki <s@sevki.org>
WORKDIR /go/src/willnorris.com/go/imageproxy
ADD . .
2015-05-21 15:53:41 -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
COPY --from=0 /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=0 /etc/ssl/certs /etc/ssl/certs
COPY --from=0 /go/bin/imageproxy .
CMD ["-addr", "0.0.0.0:8080"]
ENTRYPOINT ["/go/bin/imageproxy"]
2015-05-21 15:53:41 -05:00
EXPOSE 8080