7cc2051528
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.
18 lines
479 B
Bash
18 lines
479 B
Bash
#!/bin/sh
|
|
|
|
# set umask
|
|
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_MAIN_PATH --dataPath=/foundrydata |