What is the best practice for writing dockerfile for Go application ?

This page summarizes the projects mentioned and recommended in the original post on /r/docker

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • docker-images

    Images provided by Portainer.io (by portainer)

  • Go app should not need to be routed through reverse proxy (e.g. ngnix). If you have build your go app properly as static binary with multistage docker and do not have any dependencies (CGO). Use docker FROM SCRATCH. For example https://github.com/portainer/docker-images/blob/master/base/Dockerfile and read about distroless https://github.com/GoogleContainerTools/distroless

  • distroless

    🥑 Language focused docker images, minus the operating system.

  • Go app should not need to be routed through reverse proxy (e.g. ngnix). If you have build your go app properly as static binary with multistage docker and do not have any dependencies (CGO). Use docker FROM SCRATCH. For example https://github.com/portainer/docker-images/blob/master/base/Dockerfile and read about distroless https://github.com/GoogleContainerTools/distroless

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts