#Ubuntu
#base image
FROM ubuntu:18.04
#update the apt-get
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe" >> /etc/apt/sources.list \
&& apt-get update
#download necessary software
RUN apt-get install vim unzip wget python
#Create workpath
RUN mkdir -r ./wifi/dev \
&& cd ./wifi/dev
#copy files
COPY ./ty_iot_sdk_bk7231n_bk7231n_2.3.3-beta.18 ./wifi/dev
error message
[enter image description here][1]Dockerfile
[1]: https://i.stack.imgur.com/UyMII.png
The last error, it seems that the command requires interaction, but how is this implemented in the Dockerfile
>Solution :
You need to add the -y option on apt-get install so it’ll install without needing a response from you. Like this
RUN apt-get install -y vim unzip wget python