fix: docker statup permission issue (#1709)

This commit is contained in:
Meier Lukas
2024-12-18 14:10:43 +01:00
committed by GitHub
parent a51999457b
commit 1baa9fc74c
4 changed files with 15 additions and 8 deletions

10
scripts/entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -e
# Creating folders in volume
mkdir -p /appdata/db
mkdir -p /appdata/redis
chown -R nextjs:nodejs /appdata
su-exec 1001:1001 "$@"

View File

@@ -1,7 +1,3 @@
# Creating folders in volume
mkdir -p /appdata/db
mkdir -p /appdata/redis
# Run migrations
if [ $DB_MIGRATIONS_DISABLED = "true" ]; then
echo "DB migrations are disabled, skipping"