|
|
|
|
|
by BigGreenTurtle
1878 days ago
|
|
What I've done on a recent project is to vendor the dependencies before build(which are excluded from git, you could cache these if you're using a CICD system like circle), copy everything into the build container, build with -mod=vendor and then copy the resulting binary into a new container. Don't know how that'll work out for a larger project but it works well enough in this small API I wrote. |
|