aws-solutions-library-samples / guidance-for-game-server-hosting-using-agones-and-open-match-on-amazon-eks

This guidance provides code and instructions to create a multi Kubernetes cluster environment to host a match making and game server solution, integrating Open Match, Agones and Amazon Elastic Kubernetes Service (Amazon EKS), for a session-based multiplayer game.
https://aws.amazon.com/solutions/guidance/game-server-hosting-using-agones-and-open-match-on-amazon-eks/
MIT No Attribution
12 stars 8 forks source link

Optimize Dockerfile by reducing layers and improving build caching #27

Closed YoussefBayouli closed 1 month ago

YoussefBayouli commented 1 month ago

Description of changes: Combined the go.mod and go.sum copying and module download steps to maximize Docker cache efficiency.

Reordered the build steps to reduce rebuild times when only source code changes.

Used --no-cache in the apk add to avoid caching unnecessary layers.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sdpoueme commented 1 month ago

Thanks for submitting the PR @YoussefBayouli

sdpoueme commented 1 month ago

We just quickly looked at the changes and approved them. @zachs-1 you can go ahead and merge.