From ff4fe3749952eafc565f1e0d73f38a0cae42d1e1 Mon Sep 17 00:00:00 2001 From: sxwebdev Date: Tue, 1 Apr 2025 13:20:19 +0300 Subject: [PATCH 1/3] Update Dockerfile --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fb2d95..ae309bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,11 @@ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.buildDate=${DATE}" -v -o ./bin/gcx ./cmd/gcx -# Final image based on Alpine with necessary packages. -FROM golang:1.24-alpine +FROM golang:1.24-bullseye ENV GOTOOLCHAIN=auto ENV GOROOT=/usr/local/go -RUN apk --no-cache add ca-certificates git gcc musl-dev mercurial WORKDIR /app COPY --from=builder /app/bin/gcx /usr/bin/ From 5be3c9191fc5f0ef71c16e7d199f354cfa391130 Mon Sep 17 00:00:00 2001 From: sxwebdev Date: Tue, 1 Apr 2025 13:25:51 +0300 Subject: [PATCH 2/3] update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae309bc..87e809a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Dockerfile -FROM golang:1.24 AS builder +FROM golang:1.24-bullseye AS builder WORKDIR /app # Define build arguments for version, commit, and date. From e8e794ab4aba3e219b800435f46e04706a504630 Mon Sep 17 00:00:00 2001 From: sxwebdev Date: Tue, 1 Apr 2025 13:38:36 +0300 Subject: [PATCH 3/3] update docker --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87e809a..2438ed2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Dockerfile -FROM golang:1.24-bullseye AS builder +FROM golang:1.24 AS builder WORKDIR /app # Define build arguments for version, commit, and date. @@ -15,7 +15,7 @@ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.buildDate=${DATE}" -v -o ./bin/gcx ./cmd/gcx -FROM golang:1.24-bullseye +FROM golang:1.24 ENV GOTOOLCHAIN=auto ENV GOROOT=/usr/local/go