Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Start with small version of base image

Sumit Rawal answered on May 13, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • How can you make modifications to a base image and customize it?

  • Start with small version of base image

    0

    When you write Dockerfile, Docker container should include a single process and contain minimum required to run it. You do not need an entire operating system.

    You can reduce your Docker image size by using Alpine image as base image for your dockerfile. It will only include binaries or libraries that you need.

    Example: -

    FROM node:14.16.0 image size ~ 943MB

    FROM node:14.16.0-alpine image size ~ 116MB

    You can see the size difference between both images size.

    Alpine Linux is a Linux distribution that is smaller in size and more secure. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 13 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.