github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/acceptance/compose/gss/psql/Dockerfile (about) 1 # Build the test binary in a multistage build. 2 FROM golang:1.13 AS builder 3 WORKDIR /workspace 4 COPY . . 5 RUN go get -d -t -tags gss_compose 6 RUN go test -v -c -tags gss_compose -o gss.test 7 8 # Copy the test binary to an image with psql and krb installed. 9 FROM postgres:11 10 11 RUN apt-get update && \ 12 DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \ 13 krb5-user 14 15 COPY --from=builder /workspace/gss.test . 16 17 ENTRYPOINT ["/start.sh"]