expand build to the entire package

This commit is contained in:
JurajKubrican
2024-11-19 13:11:24 +01:00
parent c1ffce5c3a
commit c7a8fdb943

View File

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