Исправлен Dockerfile
All checks were successful
release / release (push) Successful in 3m18s

This commit is contained in:
Алексей Бадяев 2024-10-31 13:23:59 +07:00
parent 237a7623e4
commit 9371733501
Signed by: alexey
GPG Key ID: 686FBC1363E4AFAE

View File

@ -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