* chore: update Dockerfile for monitor service to create a non-root user and adjust permissions for improved security * chore: enhance Docker entrypoints to support non-root execution and improve log directory permissions
11 lines
185 B
Bash
Executable File
11 lines
185 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ "$(id -u)" = "0" ]; then
|
|
chown -R plane:plane /code/plane/logs
|
|
exec su-exec plane "$0" "$@"
|
|
fi
|
|
|
|
python manage.py wait_for_db $1
|
|
|
|
python manage.py migrate $1 |