mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
837e72352f
Fixes #113
22 lines
477 B
Docker
22 lines
477 B
Docker
FROM golang:1.8
|
|
MAINTAINER Sevki <s@sevki.org>
|
|
|
|
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=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"]
|
|
|
|
EXPOSE 8080
|