FROM centos:7 COPY run-sftp.sh /usr/bin/run-sftp.sh COPY CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo RUN yum install -y openssh-server \ && chmod +x /usr/bin/run-sftp.sh \ && yum clean all EXPOSE 47188 ENTRYPOINT ["sh", "-c", "/usr/bin/run-sftp.sh"]