Load upload dir from ENV

This commit is contained in:
2024-08-16 14:41:33 +02:00
parent 0842c107e6
commit cbd03de6a3
3 changed files with 17 additions and 3 deletions

12
container/entrypoint.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env sh
set -e
export STORAGE_PATH="${STORAGE_PATH:-./uploads}"
entrypoint() {
mkdir -p "${STORAGE_PATH}"
node ./build/index.js
}
entrypoint