On Fri, Oct 30, 2020 at 01:42:22PM +0800, Wang Chenglong wrote:
+FROM centos:7
add one blank line look better.
+MAINTAINER Wang Chenglong 18509160991@163.com
+RUN yum repolist
ditto
+RUN yum -y install ntp && \
- yum clean all
ditto
+RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+COPY ntp.conf /etc/ntp.conf
ditto
+COPY start-server.sh /
+EXPOSE 123
+ENTRYPOINT ["/start-server.sh"]
ditto
+CMD ["sh"]
2.23.0