Youssef Bayouli
Youssef Bayouli
Multi-stage Build: The builder stage compiles the Go binary, and the final stage (alpine) only includes the built binary. Simplified Commands: Combined related RUN commands to reduce the number of...
Improvements made: Multi-stage builds: We split the Dockerfile into two stages to ensure the final image contains only the necessary dependencies for runtime. Layer reduction: Combined multiple RUN commands to...
Combined multiple apk add steps in both stages to reduce the number of layers. Removed the apk del --purge deps since curl and vim are still required, so no need...