The apt tool is intended for interactive use. Use apt-get or apt-cache instead in Dockerfile RUN instructions.
apt
apt-get
apt-cache
RUN
(c) 2025 Asymmetric Effort, LLC. scaldwell@asymmetric-effort.com