github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/query/cache/service/Dockerfile (about) 1 # Production deployment spec for query cache service. 2 3 # Base golang 1.20.1 image. 4 FROM golang:1.20.14-bullseye as builder 5 6 RUN apt-get update 7 RUN apt-get install -qy --no-install-suggests git 8 WORKDIR /go/src/wpt.fyi 9 10 COPY wpt.fyi . 11 RUN CGO_ENABLED=0 /usr/local/go/bin/go build -o ../../bin/app ./api/query/cache/service 12 13 # Application image. 14 FROM gcr.io/distroless/static-debian11 15 16 COPY --from=builder /go/bin/app /usr/local/bin/app 17 18 CMD ["/usr/local/bin/app"]