From b78e90b6b03399c8f09fda7ede4e18630588eed8 Mon Sep 17 00:00:00 2001 From: Blokhin Dmitriy Date: Mon, 30 Dec 2024 20:00:43 +0200 Subject: [PATCH] update build flags --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84e2d00..ad02661 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,13 @@ RUN apk update && apk add --no-cache \ WORKDIR /app COPY . . -RUN CGO_ENABLED=0 go build -o proxyme . +RUN CGO_ENABLED=0 go build -ldflags "-s -w" -a -o proxyme . # runner FROM scratch -USER 1000:1000 -WORKDIR / +WORKDIR /app COPY --from=builder /app/proxyme . +USER 1000:1000 ENTRYPOINT ["./proxyme"]