How to write the Dockerfile that can pass yes to prompting license agreement?
docker build -t "{user}/{tags}" .
then build failed. docker logs {container id}
, show message as below:
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring ttf-mscorefonts-installer
TrueType core fonts for the Web EULA END-USER LICENSE AGREEMENT FOR
MICROSOFT SOFTWARE
...
Do you accept the EULA license terms? [yes/no]
For me, the ACCEPT_EULA=y
before the install did the job, like
RUN apt-get update && ACCEPT_EULA=Y apt-get install PACKAGE -y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With