Don't capture stdin and stdout

This commit is contained in:
2019-12-05 06:49:24 +00:00
parent d8b0133351
commit c1e330abd6

View File

@@ -17,7 +17,7 @@ COPY ./update-dns.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/update-dns.sh
RUN mkdir -p /etc/cron.d/
RUN echo -e "*/10 * * * * update-dns.sh > /proc/1/fd/1 2>/proc/1/fd/2\n" > /etc/cron.d/dns-cron
RUN echo -e "*/10 * * * * update-dns.sh\n" > /etc/cron.d/dns-cron
RUN crontab /etc/cron.d/dns-cron
CMD ["crond", "-f"]