DesignGym / docker-entrypoint.sh
AdithyaSK's picture
AdithyaSK HF Staff
Serve Crello corpus aafdb0e86816 from the mounted bucket
df84e45 verified
Raw History Blame Contribute Delete
567 Bytes
#!/bin/sh
# Pick the task source. With the corpus manifest in the image, serve the full
# corpus: from the bucket mount if there is one, otherwise over HTTP. Without
# it, serve the pack built into the image.
if [ -f /app/design_canvas/corpus-manifest.json ]; then
export DESIGN_CANVAS_CORPUS="${DESIGN_CANVAS_CORPUS:-/app/design_canvas/corpus-manifest.json}"
[ -d "${DESIGN_CANVAS_SOURCE_ROOT:-/corpus}/data" ] || unset DESIGN_CANVAS_SOURCE_ROOT
else
export DESIGN_CANVAS_PACK="${DESIGN_CANVAS_PACK:-/data/pack}"
unset DESIGN_CANVAS_SOURCE_ROOT
fi
exec "$@"