build time and run time

Build time is when software, such as a container image, is built and run time is when it is actually running, and every setting belongs to one or the other.

In more detail

For a container, files, installed packages and the default command are fixed at build time and go into the image. Published ports, memory limits, secrets and most environment values are chosen at run time, so one image can run differently in development and production without a rebuild. Types and checks that exist at build time are not automatically available when the program runs, so data from users, networks and configuration has to be validated at run time.

Example

TypeScript types vanish at build time, so payloads and environment variables are validated with runtime schemas.

Related terms

Taught in

References

Certification courses