From c7a8fdb9431cb84ee9125fdb349f7ec4e9e4b40b Mon Sep 17 00:00:00 2001 From: JurajKubrican Date: Tue, 19 Nov 2024 13:11:24 +0100 Subject: [PATCH] expand build to the entire package --- dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 9f1aea6..4c857e3 100644 --- a/dockerfile +++ b/dockerfile @@ -12,7 +12,7 @@ RUN go mod download COPY . . # Build the Go binary with static linking for Linux -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server src/main.go +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server ./src FROM scratch