Dockerfile for Golang Step by Step 2024 (multi-stage build with distroless/scratch)

Описание к видео Dockerfile for Golang Step by Step 2024 (multi-stage build with distroless/scratch)

This video covers how to build your Dockerfile and run the container by mapping the port.

The Dockerfile uses multi-stage builds which allows us to build a small-sized minimal image. Here is the docker docs covering multi-stage builds: https://docs.docker.com/build/buildin...

If you are ever interested in what the difference between using the distroless vs. scratch as the base image is, have a read at a blog post I found: https://iximiuz.com/en/posts/containe...

github: https://github.com/dhij/cluster-demo

Комментарии

Информация по комментариям в разработке