googleforgames / open-match

Flexible, extensible, and scalable video game matchmaking.
http://open-match.dev
Apache License 2.0
3.17k stars 335 forks source link

Simplifying and Optimizing the Dockerfile #1769

Open YoussefBayouli opened 3 months ago

YoussefBayouli commented 3 months ago

Multi-stage Build: The builder stage compiles the Go binary, and the final stage (alpine) only includes the built binary. Simplified Commands: Combined related RUN commands to reduce the number of layers. Minimal Base Image: Used alpine for the runtime image to keep it lightweight.

What this PR does / Why we need it: Simplifies and optimizes the Dockerfile with a multi-stage build, reducing image size and improving efficiency

Which issue(s) this PR fixes:

Closes #

Special notes for your reviewer: