mirror of
https://github.com/casjaysdevdocker/ampache
synced 2025-09-20 03:57:41 -04:00
Dockerfile rootfs/root/docker/setup/05-custom.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh
26 lines
1013 B
Bash
Executable File
26 lines
1013 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set bash options
|
|
set -e -o pipefail
|
|
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -x$DEBUGGER_OPTIONS
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set env variables
|
|
exitCode=0
|
|
export PHP_VERSION=$PHP_VERSION NODE_VERSION=$NODE_VERSION NODE_MANAGER=$NODE_MANAGER WWW_ROOT_DIR="$WWW_ROOT_DIR"
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Main script - simplified for now
|
|
echo "Skipping template downloads for faster build"
|
|
|
|
# Create necessary directories
|
|
mkdir -p /usr/share/webapps/ampache
|
|
mkdir -p /config /data
|
|
|
|
# Download Ampache if needed (commented out for now)
|
|
# cd /usr/share/webapps
|
|
# git clone https://github.com/ampache/ampache.git ampache || true
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set the exit code
|
|
exitCode=$?
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
exit $exitCode |