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