[Docker] Add Dockerfile

This commit is contained in:
Killian Kemps
2020-04-28 17:12:51 +02:00
parent 9e0ec5ff0f
commit e86bd1562d
3 changed files with 106 additions and 0 deletions

17
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
if [ -z "$SNIKKET_DOMAIN" ]; then
echo "Please provide SNIKKET_DOMAIN";
exit 1;
fi
if [ -z "$PROSODY_ENDPOINT" ]; then
echo "Please provide PROSODY_ENDPOINT";
exit 1;
fi
if [ -z "$SECRET_KEY" ]; then
echo "Please provide SECRET_KEY";
fi
exec hypercorn -b "0.0.0.0:8000" snikket_web:app