Files
funnywolfandCopilot c696ecba3f Fix deployment script permissions
Ensure Docker Compose package scripts keep executable permissions and make the frontend certificate entrypoint executable in the image.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-28 22:00:56 +08:00

15 lines
388 B
Bash
Executable File

#!/bin/sh
set -eu
requirements="${CUSTOM_REQUIREMENTS_FILE:-/app/custom/requirements.txt}"
target="${CUSTOM_PYTHON_TARGET:-/opt/asp/custom-packages}"
mkdir -p "$target"
if [ ! -f "$requirements" ] || ! grep -qEv '^[[:space:]]*(#|$)' "$requirements"; then
echo "No custom requirements found at $requirements"
exit 0
fi
uv pip install --target "$target" -r "$requirements" "$@"