Load upload dir from ENV
This commit is contained in:
12
container/entrypoint.sh
Executable file
12
container/entrypoint.sh
Executable 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
|
Reference in New Issue
Block a user