File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,5 +41,8 @@ RUN chmod +x bin/startServer.sh
41
41
# RUN ufw allow 5000
42
42
WORKDIR /app
43
43
44
+ RUN useradd -m pawsapp
45
+ USER pawsapp
46
+
44
47
CMD bin/startServer.sh
45
48
# >> start.log 2>&1
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ echo "SLEEPING.. WAITING FOR DB"; sleep 5; echo "WAKING"; alembic upgrade head;
11
11
12
12
# --no-reload prevents Flask restart, which usually happens in middle of create_base_users()
13
13
# TODO: SECURITY - ensure we are not running in debug mode in production
14
- uwsgi --http-socket :5000 --plugin python38 --module wsgi:app --chdir /app --pythonpath . --processes 2 --threads 4
14
+ uwsgi --http-socket :5000 --plugin python38 --module wsgi:app --chdir /app --pythonpath . --processes 2 --threads 4 --master
You can’t perform that action at this time.
0 commit comments