Fixed server endpoints not starting by correcting the entrypoint wrapper script to use the proper command: /sbin/tini -- /opt/app/bin/server Changes: - Updated entrypoint-wrapper.sh to exec /sbin/tini instead of /opt/app/bin/asciinema - Removed incorrect command: ["start"] from compose.yaml - Custom CSS injection now working with proper server startup - Both main (port 4000) and admin (port 4002) endpoints now running The custom Pivoine theme CSS is successfully injected at container startup and served via both app.css and hashed app-*.css files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
687 B
Bash
Executable File
18 lines
687 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Inject custom CSS into app.css if it exists
|
|
if [ -f /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css ]; then
|
|
echo "Injecting custom CSS into app.css..."
|
|
cat /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css >> /opt/app/lib/asciinema-1.0.0/priv/static/assets/app.css
|
|
# Also append to the hashed version
|
|
CSS_FILE=$(ls /opt/app/lib/asciinema-1.0.0/priv/static/assets/app-*.css 2>/dev/null | head -1)
|
|
if [ -n "$CSS_FILE" ]; then
|
|
cat /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css >> "$CSS_FILE"
|
|
echo "Custom CSS injected successfully"
|
|
fi
|
|
fi
|
|
|
|
# Execute the original entrypoint
|
|
exec /sbin/tini -- /opt/app/bin/server "$@"
|