15 lines
537 B
Docker
15 lines
537 B
Docker
FROM python:3
|
|
|
|
RUN pip install aliyun-python-sdk-core -i https://pypi.tuna.tsinghua.edu.cn/simple \
|
|
&& sleep 2 \
|
|
&& pip install aliyun-python-sdk-alidns -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
RUN touch /var/log/python.log \
|
|
&& sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list.d/debian.sources \
|
|
&& apt-get update \
|
|
&& apt-get -y install cron \
|
|
&& echo '*/1 * * * * sh /aliyun-dns-sync/cron.sh' | crontab
|
|
|
|
COPY ./File/* /aliyun-dns-sync/
|
|
|
|
CMD [ "bash", "/aliyun-dns-sync/start.sh" ] |