Skip to content

Commit

Permalink
Update startup.sh
Browse files Browse the repository at this point in the history
chown the working dir on startup
Use s6-setuidgid to start everything as the user abc with the UID:GID 1000:1000
  • Loading branch information
Plaidstallion authored Mar 16, 2021
1 parent 1b958d6 commit 0490781
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

# Directly referencing these variables now because docker-compose sucks
python3 setup.py --appname $APPNAME --username $ADMINUSER --password $PASSWORD
gunicorn --workers 4 --threads 4 --bind 0.0.0.0:8080 wsgi:app
chown -R abc:abc /app
s6-setuidgid abc python3 setup.py --appname $APPNAME --username $ADMINUSER --password $PASSWORD
s6-setuidgid abc gunicorn --workers 4 --threads 4 --bind 0.0.0.0:8080 wsgi:app

0 comments on commit 0490781

Please sign in to comment.