use as build
이미지
multi-stage builds
Multi-stage builds
Keeping your images small with multi-stage builds
https://docs.docker.com/build/building/multi-stage/#use-multi-stage-builds

3 simple tricks for smaller Docker images
When it comes to building Docker containers, you should always strive for smaller images. Images that share layers and are smaller in size are quicker to transfer and deploy. But how do you keep the size under control when every RUN statement creates a new layer, and you need intermediate artefacts before the image is ready?
https://learnk8s.io/blog/smaller-docker-images?fbclid=IwAR2sm4G9BYEsFHCFdwXIv-lzmjB36GegfZocD-yZMoEy8fxHyJn0XSdjRYU


Seonglae Cho