From b4669a9551a472270783eaca245480ce0d9fed6e Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 27 Mar 2025 17:46:24 -0400 Subject: [PATCH] fix: dockerfile ne copie pas les go source files de la racine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajouter *.go à build step copy Ajouter LICENSE à build step copy Retirer pkg/ de build step add Retirer apk upgrade de run step - plus prévisible si on utilise direct ce que les image distributors ont packagés --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe1894a..a93f3cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ label repo="https://git.agecem.com/agecem/babillard" workdir /go/src/app -copy go.mod go.sum ./ +copy go.mod go.sum LICENSE cmd.go config.go contenu.go data.go handlers.go response.go ./ add cmd/ cmd/ -add pkg/ pkg/ add ui/ ui/ run CGO_ENABLED=0 go build -a ./cmd/babillard/ @@ -19,8 +18,6 @@ run CGO_ENABLED=0 go build -a ./cmd/babillard/ from alpine:3.21 -run apk update && apk upgrade --no-cache - workdir /app add contenu/ contenu/ -- 2.45.3