Run with Docker
If you build your application in production using docker, there are certain system dependencies required, namely:
Debian
Alpine
Most of these are already present in the official Golang docker images.
Important points to ensure in your Dockerfile
:
Enable
CGO
while building your application. (default is enabled)Remember to add the build flags:
-gcflags="all=-N -l"
Install system dependencies.
Here is a sample Dockerfile
to deploy our agent in your application.
Last updated