V13 main.js path compatibility + docker image enhancements.
Build foundry vtt docker image and push to registry / docker (push) Successful in 2m27s
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:
+9
-1
@@ -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
|
||||
Reference in New Issue
Block a user