FROM rust:1.72.0 as rust-buildRUN apt update && apt install -y protobuf-compilerWORKDIR /appCOPY ./ /app# RUN protoc --prost-serde_out=/app/server/proto/ -I proto /app/server/proto/api/v1/glue.protoRUN cd /app/server && cargo build --releaseRUN mv /app/server/target/release/server /app/server/target/release/appFROM golang:1.21.5 as go-buildWORKDIR /go/src/appRUN apt update && apt install -y protobuf-compilerCOPY ./server ./RUN go mod downloadRUN go vet -vRUN go test -vRUN CGO_ENABLED=0 go build -o /go/bin/app# FROM gcr.io/distroless/static-debian12FROM debianWORKDIR /demoCOPY --from=rust-build /app/server/target/release/app /demo/r/COPY --from=go-build /go/bin/app /demo/g/