Update docker to be better

This commit is contained in:
Ethan O'Brien
2024-07-04 16:21:03 -05:00
parent 18c5524ce2
commit fbda01a5fe
3 changed files with 13 additions and 2 deletions

10
docker/start.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
port="${PORT:-8080}"
directory="${DIRECTORY:-/data/}"
if [ "$HTTPS" = "true" ]; then
/root/ew/ew --path $directory --port $port --https
else
/root/ew/ew --path $directory --port $port
fi