add index.js to node executable

This commit is contained in:
Karol Wypchlo 2021-07-26 14:12:33 +02:00
parent 5d7f02a1c8
commit 8afa43a0a2
3 changed files with 3 additions and 3 deletions

View File

@ -9,4 +9,4 @@ RUN yarn
COPY src/* src/
EXPOSE 3100
CMD node src
CMD node src/index.js

View File

@ -15,4 +15,4 @@ ENV HSD_API_KEY="foo"
EXPOSE 3100
ENV NODE_ENV production
CMD [ "node src" ]
CMD node src/index.js

View File

@ -30,5 +30,5 @@ CMD [ "sh", "-c", \
"dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \
echo \"$(sed 's/127.0.0.11/127.0.0.1/' /etc/resolv.conf)\" > /etc/resolv.conf ; \
crond ; \
node src" \
node src/index.js" \
]