V13 main.js path compatibility + docker image enhancements.
Build foundry vtt docker image and push to registry / docker (push) Successful in 2m27s

Preparing environment for building different Foundry dockers using a build argument to choose which node base image is being applied. Not strictly required right now, but might be useful in the future.
This commit is contained in:
Crovaxon
2025-05-03 18:20:48 +02:00
parent 0c183ec076
commit 7cc2051528
3 changed files with 22 additions and 4 deletions
+9 -1
View File
@@ -6,5 +6,13 @@ umask ${UMASK}
# set permissions on application folder
chown -R ${PUID}:${PGID} /foundry
# set default main.js path as used in v12 and earlier
FOUNDRY_MAIN_PATH=/foundry/resources/app/main.js
# check for newer path used in v13 and newer
if [ ! -f /foundry/main.js ]; then
FOUNDRY_MAIN_PATH=/foundry/main.js
fi
# run Foundry with the environmentally set user and group id
exec su-exec ${PUID}:${PGID} node /foundry/resources/app/main.js --dataPath=/foundrydata
exec su-exec ${PUID}:${PGID} node $FOUNDRY_MAIN_PATH --dataPath=/foundrydata