Speed_Read_AI / entrypoint.sh
circulartext's picture
Create entrypoint.sh
6bb32f9
raw
history blame
413 Bytes
#!/bin/bash
# Create the appuser if it doesn't exist
if ! id -u appuser > /dev/null 2>&1; then
adduser --disabled-password --gecos '' appuser
fi
# Set appropriate permissions for the application directory
chown -R appuser:appuser /app
chmod -R 755 /app
# Any other setup or initialization steps go here
# Run the main application
exec gosu appuser uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload