FROM centos:7 COPY vsftpd.conf /etc/vsftpd/ COPY vsftpd_virtual /etc/pam.d/ COPY run-vsftpd.sh /usr/bin/ COPY CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo RUN yum install -y vsftpd \ && chmod +x /usr/bin/run-vsftpd.sh \ && yum clean all EXPOSE 20 21 ENTRYPOINT ["sh", "-c", "/usr/bin/run-vsftpd.sh"]