From 37d2ce99bf18bb3d95692d57a7d03828da1fb0f0 Mon Sep 17 00:00:00 2001 From: Tamas Gal Date: Fri, 17 Oct 2025 12:50:05 +0200 Subject: [PATCH] Fix version and BuildTime injection --- backend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7bd5b43..2f7df50 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,12 +1,12 @@ # --- BUILD STAGE --- -FROM golang:1.25.0 AS builder +FROM golang:1.25.3 AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . # Fontos: CGO_ENABLED=0 a statikusan linkelt binárisért, ami kompatibilis lesz az Alpine alapú futtatási környezettel. -RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -o backend . +RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w -X 'main.BuildTime=$(date)'" -o backend . # --- DEPLOY STAGE ---