Ubuntu dockerfile - mailutils install
Use the following dockerfile
:
FROM ubuntu:latestENV DEBIAN_FRONTEND="noninteractive"RUN apt-get update && apt-get install -y mailutils
The important part is setting debconf
to noninteractive
mode.
You can also use this trick with something like
FROM ubuntu:latestRUN apt-get update && apt-get install -yRUN echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections &&\ echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections &&\ apt-get install -y mailutils