0087d0fddc
- Fix logger path to use relative path from backend directory - Add LOG_DIR environment variable support for custom log paths - Create logs directory with .gitkeep to ensure it exists - Add docker-entrypoint.sh to handle runtime permissions - Optimize Dockerfile to set proper permissions for nodejs user - Ensure logs directory is writable by the application 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
10 lines
175 B
Bash
Executable File
10 lines
175 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Ensure logs directory exists with correct permissions
|
|
if [ ! -d "/app/logs" ]; then
|
|
mkdir -p /app/logs
|
|
fi
|
|
|
|
# Start the application
|
|
exec node src/app.js |