Some checks failed
gitea/file-organizer/pipeline/head There was a failure building this commit
15 lines
307 B
Bash
15 lines
307 B
Bash
#!/bin/bash
|
|
|
|
# Create user and group using UID and GID from docker run command
|
|
useradd -u $UID -o -m user
|
|
groupadd -g $GID -o group
|
|
|
|
# assign user to group
|
|
usermod -aG group user
|
|
|
|
# switch to user
|
|
su user
|
|
|
|
# launch the application
|
|
gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8000
|