FROM golang:1.22 AS build WORKDIR /app COPY go.mod ./ COPY main.go Dockerfile ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /three FROM gcr.io/distroless/base-debian11 AS release WORKDIR /app COPY --from=build /three /app/three COPY index.html . EXPOSE 8080 USER nonroot:nonroot ENTRYPOINT ["/app/three"]