chore(dockerfile): add pkg folder to containers

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
This commit is contained in:
Gabriele Fedi 2025-11-17 10:18:22 +01:00
parent 80dfe727ed
commit 6d2d3eb925
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ RUN go mod download
COPY ../cmd/manager/main.go cmd/manager/main.go
COPY ../api/ api/
COPY ../internal/ internal/
COPY ../pkg/ pkg/
ENV GOCACHE=/root/.cache/go-build
ENV GOMODCACHE=/go/pkg/mod

View File

@ -24,6 +24,7 @@ ENV GOMODCACHE=/go/pkg/mod
COPY ../cmd/manager/main.go cmd/manager/main.go
COPY ../api/ api/
COPY ../internal/ internal/
COPY ../pkg/ pkg/
# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command