
30 Oct
2020
30 Oct
'20
8:50 a.m.
+ +FROM centos:7 +MAINTAINER Wang Chenglong <18509160991@163.com> + +RUN yum repolist +RUN yum -y install ntp && \ + yum clean all +RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + +COPY ntp.conf /etc/ntp.conf
these file can mount into container?
Is this necessary? Maybe all good ways, But I choose 'COPY'. Thanks, Chenglong
easy to improve
Thanks, Shenwei
+COPY start-server.sh / + +EXPOSE 123 + +ENTRYPOINT ["/start-server.sh"] +CMD ["sh"] -- 2.23.0