Skip to content

Commit

Permalink
Change go compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
leech001 committed Nov 26, 2022
1 parent 87976de commit 69fbd32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:latest AS builder
WORKDIR /build
COPY app .
RUN go get main
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o monitor
RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o monitor


FROM alpine:latest
Expand Down

0 comments on commit 69fbd32

Please sign in to comment.