Spaces:
Sleeping
Sleeping
File size: 413 Bytes
6bb32f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/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
|