From 28002070bcc7734dca1856c1f9f1770535c0f27a Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Thu, 9 Apr 2026 09:01:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Dockerfile.prod.template?= =?UTF-8?q?=20to=20build=20binary=20during=20Docker=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile.prod.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.prod.template b/docker/Dockerfile.prod.template index 4413aa6..f235d5e 100644 --- a/docker/Dockerfile.prod.template +++ b/docker/Dockerfile.prod.template @@ -2,9 +2,13 @@ # Minimal image using pre-built binary from CI cache # Template: Replace {{DEPS_HASH}} with actual dependency hash -# Use the build cache image as base +# Use the build cache image as base for building FROM gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:{{DEPS_HASH}} AS builder +# Set working directory and build the binary +WORKDIR /workspace +RUN go build -o dance-lessons-coach ./cmd/server + # Final minimal image FROM alpine:3.18