带有交互式安装的 Dockerfile Ubuntu
Dockerfile Ubuntu with interactive install
我正在为您制作这个 post,因为我目前正在制作来自 UBUNTU 20.04.
的 docker 文件
在我的 docker 文件中,我 运行 安装了一些需要带有“交互式”答案的多项选择题。
所以我想知道如何使它自动化。
我让你附上我的 docker 文件,我在包前面放了一个散列导致了我的问题。
RUN apt-get update
RUN rm -f /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
RUN apt-get install apache2 -y
RUN apt install gnupg
RUN apt-get install wget
RUN cd /tmp
RUN wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
#RUN apt install ./mysql-apt-config_0.8.20-1_all.deb -y
RUN apt-get install mysql-server -y
RUN apt-get install mysql-client
RUN apt-get install php -y
RUN apt-get install vim -y
RUN apt-get install nano
RUN apt-get install pv
RUN apt-get install php-mysql -y
RUN apt-get install libapache2-mod-php
RUN apt-get install git-core -y
RUN apt-get install unoconv -y
RUN apt-get install poppler-utils
#RUN apt-get install ttf-mscorefonts-installer -y
#RUN apt-get install wkhtmltopdf -y
#RUN apt-get install backup-manager
RUN apt-get install xvfb
RUN apt-get install php-imap -y
RUN apt-get install php-intl -y
#RUN apt-get install php-mcrypt
RUN apt-get install curl
RUN apt-get install php-curl -y
RUN apt-get install openssl
RUN apt-get install ssl-cert
RUN apt-get install php-mbstring -y
RUN apt-get install php-xml -y
RUN apt-get install php-imagick -y
RUN apt-get install php-zip -y
#RUN apt-get install postfix -y```
Thank you for your help ;D
在调用之前添加以下内容 apt-get
ENV DEBIAN_FRONTEND=noninteractive
或在apt-get
命令前添加DEBIAN_FRONTEND=noninteractive
,例如DEBIAN_FRONTEND=noninteractive apt-get install curl -y
我正在为您制作这个 post,因为我目前正在制作来自 UBUNTU 20.04.
的 docker 文件在我的 docker 文件中,我 运行 安装了一些需要带有“交互式”答案的多项选择题。
所以我想知道如何使它自动化。
我让你附上我的 docker 文件,我在包前面放了一个散列导致了我的问题。
RUN apt-get update
RUN rm -f /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
RUN apt-get install apache2 -y
RUN apt install gnupg
RUN apt-get install wget
RUN cd /tmp
RUN wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
#RUN apt install ./mysql-apt-config_0.8.20-1_all.deb -y
RUN apt-get install mysql-server -y
RUN apt-get install mysql-client
RUN apt-get install php -y
RUN apt-get install vim -y
RUN apt-get install nano
RUN apt-get install pv
RUN apt-get install php-mysql -y
RUN apt-get install libapache2-mod-php
RUN apt-get install git-core -y
RUN apt-get install unoconv -y
RUN apt-get install poppler-utils
#RUN apt-get install ttf-mscorefonts-installer -y
#RUN apt-get install wkhtmltopdf -y
#RUN apt-get install backup-manager
RUN apt-get install xvfb
RUN apt-get install php-imap -y
RUN apt-get install php-intl -y
#RUN apt-get install php-mcrypt
RUN apt-get install curl
RUN apt-get install php-curl -y
RUN apt-get install openssl
RUN apt-get install ssl-cert
RUN apt-get install php-mbstring -y
RUN apt-get install php-xml -y
RUN apt-get install php-imagick -y
RUN apt-get install php-zip -y
#RUN apt-get install postfix -y```
Thank you for your help ;D
在调用之前添加以下内容 apt-get
ENV DEBIAN_FRONTEND=noninteractive
或在apt-get
命令前添加DEBIAN_FRONTEND=noninteractive
,例如DEBIAN_FRONTEND=noninteractive apt-get install curl -y