file-organizer/entrypoint.sh
Jose134 bbef192a05
All checks were successful
gitea/file-organizer/pipeline/head This commit looks good
Install czkawka via download in dockerfile + fix uvicorn dependency
2025-02-02 03:06:22 +01:00

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