From 047b61c9a45cb6118ba574d7150d7939b12d1d1c Mon Sep 17 00:00:00 2001 From: nquidox Date: Mon, 6 Apr 2026 12:03:03 +0300 Subject: [PATCH] update --- Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0254a2b..2fafaf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,12 @@ FROM golang:1.26.1-alpine3.23 AS builder -RUN apk add --no-cache git - -ENV GOPRIVATE=repo.nqws.ru/* -ENV GONOSUMDB=repo.nqws.ru/* - WORKDIR /app COPY go.mod go.sum ./ - -RUN --mount=type=secret,id=git_creds,dst=/root/.git-credentials,mode=0600 \ - git config --global credential.helper store && \ - go mod download - +RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o main "./cmd" + FROM alpine:3.23 RUN apk add --no-cache \ @@ -26,4 +18,4 @@ COPY --from=builder /app/main /usr/local/bin/app RUN chmod +x /usr/local/bin/app -ENTRYPOINT ["app"] +ENTRYPOINT ["app"] \ No newline at end of file