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