docker / app

Make your Docker Compose applications reusable, and share them on Docker Hub
Apache License 2.0
1.57k stars 176 forks source link

Use -trimpath while building #685

Closed rumpl closed 4 years ago

rumpl commented 4 years ago

- What I did

Add the new -trimpath flag from go 1.13 which instructs the compiler to remove all file system paths from the compiled executable. With this we will see module paths in stack trace and not absolute paths. This also helps have reproducible builds (same executable bit-by-bit even if compiled on different machines).

- A picture of a cute animal (not mandatory but encouraged) image

ndeloof commented 4 years ago

Build still relies on golang 1.12.9 as we use dockercore/golang-cross