Skip to content
Snippets Groups Projects
Commit cbfcbbb8 authored by Alex Ellis's avatar Alex Ellis
Browse files

Strip binaries to half of size


Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
parent 3db2064d
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ COPY types types ...@@ -12,6 +12,7 @@ COPY types types
RUN go test RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog . \ # Stripping via -ldflags "-s -w"
&& GOARM=6 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog-armhf . \ RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -installsuffix cgo -o watchdog . \
&& GOOS=windows CGO_ENABLED=0 go build -a -installsuffix cgo -o watchdog.exe . && GOARM=6 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -installsuffix cgo -o watchdog-armhf . \
&& GOOS=windows CGO_ENABLED=0 go build -a -ldflags "-s -w" -installsuffix cgo -o watchdog.exe .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment