Spaces:
Sleeping
Sleeping
# 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 | |