fix /etc/resolv.conf

This commit is contained in:
Karol Wypchlo 2021-06-23 21:28:47 +02:00
parent 167e4c3ad0
commit e56a986766
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ ENV NODE_ENV production
# 3. start crond in the background
# 4. start the health-check api service
CMD [ "sh", "-c", \
"dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \
sed -i 's/127.0.0.11/127.0.0.1/g' /etc/resolv.conf ; \
"dnsmasq --strict-order --no-resolv --address=/siasky.net/$(node src/whatismyip.js) ; \
echo \"$(sed 's/127.0.0.11/127.0.0.1/' /etc/resolv.conf)\" > /etc/resolv.conf ; \
crond ; \
node --max-http-header-size=64000 src/index.js" \
]