Skip to content

Commit

Permalink
Improve turncat compression ratio
Browse files Browse the repository at this point in the history
Benchmark on x64:
- best+lzma file size: 32804864 ->   6895092 (21.02%)
-      lzma file size: 32804864 ->   6958812 (21.21%)
  • Loading branch information
levaitamas committed Jan 5, 2024
1 parent e300076 commit 6a56771
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 @@ -13,7 +13,7 @@ RUN apkArch="$(apk --print-arch)"; \
*) export GOARCH='amd64' ;; \
esac; \
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -trimpath -o turncat cmd/turncat/main.go
RUN upx --lzma turncat
RUN upx --best --lzma turncat

####
# NET-DEBUG
Expand Down

0 comments on commit 6a56771

Please sign in to comment.