Fix jwt-token
This commit is contained in:
11
server/docker-entrypoint.sh
Normal file
11
server/docker-entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script runs as root to set up permissions, then switches to nodejs user
|
||||
|
||||
# Ensure uploads directory exists and has correct permissions
|
||||
mkdir -p /app/uploads/logos
|
||||
chown -R nodejs:nodejs /app/uploads
|
||||
chmod -R 755 /app/uploads
|
||||
|
||||
# Switch to nodejs user and execute the command with dumb-init for signal handling
|
||||
exec su-exec nodejs dumb-init -- "$@"
|
||||
Reference in New Issue
Block a user