Войти
  • 8530Просмотров
  • 1 год назадОпубликованоdavid hwang

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: 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: github: