+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