fix: dockerfile ne copie pas les go source files de la racine

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
This commit is contained in:
Victor Lacasse-Beaudoin 2025-03-27 17:46:24 -04:00
parent c091aad796
commit b4669a9551

View file

@ -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/