expand build to the entire package
This commit is contained in:
@@ -12,7 +12,7 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the Go binary with static linking for Linux
|
# 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
|
FROM scratch
|
||||||
|
|||||||
Reference in New Issue
Block a user