diff --git a/Dockerfile b/Dockerfile index e930fd8..a9a7894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM docker.io/golang:1.22 AS build WORKDIR /usr/src/transocks COPY . . -RUN go build -trimpath -o transocks ./cmd/transocks +RUN CGO_ENABLED=0 go build -trimpath -o transocks ./cmd/transocks # Now copy it into our base image. FROM gcr.io/distroless/static-debian12:nonroot