C-D-theory

Containerization Class – 10 February

Task: Multistage Docker Build for C Application


Objective

To implement multistage Docker build to reduce image size.


Description

In this experiment, a multistage Dockerfile was used to compile the C program in one stage and run it in another stage. This reduced the final image size and improved performance.


Output Screenshots

Screenshot 1: Multistage Dockerfile

Shows Dockerfile with multiple build stages.

Dockerfile


Screenshot 2: Build Process

Displays output of multistage build.

Build Process


Screenshot 3: Image Size Comparison

Shows reduced image size after optimization.

Image Size


Screenshot 4: Program Execution

Shows final execution of C application.

Execution


Observation


Conclusion

Multistage Docker build optimized the deployment process.

This experiment helped in understanding efficient container image creation techniques.