Markos Gogoulos 78b8eb0bad ollama
2025-09-17 10:09:48 +03:00

23 lines
574 B
Bash
Executable File

#! /usr/bin/env sh
set -e
# If there's a prestart.sh script in the /app directory, run it before starting
PRE_START_PATH=deploy/docker/prestart.sh
echo "Checking for script in $PRE_START_PATH"
if [ -f $PRE_START_PATH ] ; then
echo "Running script $PRE_START_PATH"
. $PRE_START_PATH
else
echo "There is no script $PRE_START_PATH"
fi
if [ X"$ENABLE_OLLAMA" = X"yes" ] ; then
echo "Starting ollama service in background..."
ollama serve &
fi
# Start Supervisor, with Nginx and uWSGI
echo "Starting server using supervisord..."
exec /usr/bin/supervisord