netlify / gocommerce

A headless e-commerce for JAMstack sites.
MIT License
1.54k stars 208 forks source link

feature : multi-stage Dockerfile #240

Open alishazaee opened 1 year ago

alishazaee commented 1 year ago

In the Dockerfile, there are two stages. The first stage (build) builds the application using the specified Go version, and the second stage (scratch) creates a minimal image without any operating system or additional layers. The binary file built in the first stage is copied into the second stage. This approach helps reduce the overall file size of the Docker image.