๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜† ๐—Ÿ๐—ฎ๐—ฟ๐—ฎ๐˜ƒ๐—ฒ๐—น ๐—ช๐—ถ๐˜๐—ต ๐——๐—ผ๐—ฐ๐—ธ๐—ฒ๐—ฟ ๐—”๐—ป๐—ฑ ๐—ž๐˜‚๐—ฏ๐—ฒ๐—ฟ๐—ป๐—ฒ๐˜๐—ฒ๐˜€

Your Docker images should be small. Large images slow down your deployment.

Use multi-stage builds to fix this.

Stage one is the builder.

Stage two is production.

You need three more things for a professional setup:

  1. Nginx configuration.
  1. PHP optimization.
  1. Supervisord.

This setup works well for Kubernetes. It is fast and secure.

Source: https://dev.to/akandwanaho_alvin_5726f54/deploying-laravel-with-docker-github-actions-and-kubernetes-561i