Added dockerfile and entrypoint for basic compilation, moving to finalizing

This commit is contained in:
Daan
2024-06-04 17:05:17 +02:00
parent 60e64a3646
commit 06193d27c0
2 changed files with 62 additions and 0 deletions

19
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,19 @@
echo "Starting the WireGuard Dashboard."
outgoing=$(ip -o -4 route show to default | awk '{print $NF}')
echo $outgoing
. ${WGDASH}/venv/bin/activate
cd /opt/wireguardashboard/app/src
bash ./wgd.sh start
if [ "$tz" != "Europe/Amsterdam" ]; then
echo "Changing timezone..."
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
fi
sleep 3s
tail -f /opt/wireguardashboard/app/src/log/*.log
# Blocking command in case of erroring.
sleep infinity