10 lines
266 B
Text
10 lines
266 B
Text
|
FROM library/golang:1.20 as build
|
||
|
ADD * /go/caching-proxy/
|
||
|
WORKDIR /go/caching-proxy
|
||
|
ARG GOPROXY=direct
|
||
|
RUN CGO_ENABLED=0 go build .
|
||
|
|
||
|
FROM gcr.io/distroless/base-debian11
|
||
|
COPY --from=build /go/caching-proxy/caching-proxy /caching-proxy
|
||
|
ENTRYPOINT ["/caching-proxy"]
|