File size: 237 Bytes
c379058
6bb32f9
222793b
78cd9c1
6bb32f9
222793b
c379058
222793b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Set the correct permissions on the /app directory as root
chmod -R 777 /app

# Start the FastAPI application as root initially
exec "$@"

# Optionally, switch to a non-root user if needed
# USER 1000
# exec gosu 1000 "$@"