Перейти к содержимому

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

david hwang

0:00 / 0:00

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

9 807 просмотров · 2 г. назад
david hwang
5,05 тыс. подписчиков
9 807 просмотров · 2 г. назад
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