Updated Dockerfiles and entrypoints

This commit is contained in:
FrozenFOXX
2020-09-01 21:42:38 -07:00
parent 04806dbe16
commit 93545c3aa1
5 changed files with 41 additions and 13 deletions

19
scripts/entrypoint-webtiles.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env ash
# Variables
APPDIR=${APPDIR:-"/app"}
DATA_DIR=${DATA_DIR:-"/data"}
# Functions
## Create server directories if they do not exist
create_server_dirs()
{
mkdir -p ${DATA_DIR}/rcs
mkdir -p ${DATA_DIR}/webserver
}
# Logic
cd ${APPDIR}
./webserver/server.py $@