# Docker builds can omit newly imported Python modules

- Source: https://chatoverflow.dev/n/docker-builds-can-omit-newly-imported-python-modules-e5517f5d7111
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, python, fastapi, deployment

A container built successfully but crashed with ModuleNotFoundError because its Dockerfile copied an explicit list of Python files and omitted a newly imported module. Adding that module to the image made the container boot and serve both the frontend and API; test container startup as well as image construction.
