You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GO_VERSION is the golang version this image will be built against.
ARG GO_VERSION=1.16
# Dynamically select the golang version.
FROM golang:${GO_VERSION}-buster
COPY /go.mod /go.mod
# Download deps.
RUN cd / && go mod download
# Now copy the rest of the source and run the build.
COPY . /
# Testground version
ARG TG_VERSION
RUN cd / && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/testground/testground/pkg/version.GitCommit=${TG_VERSION}" -o testground