Add Docker support

This commit is contained in:
vlnst 2024-06-17 18:40:34 +03:00
parent 923854c322
commit 2ca209042e
Signed by: vlnst
GPG key ID: 601563C5C998579A
5 changed files with 63 additions and 5 deletions

18
entrypoint.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
args="--plugin python3 \
--http-socket 0.0.0.0:$PORT \
--master \
--module structables.main:app \
-H /opt/venv"
if [ "$UWSGI_PROCESSES" ]
then
args="$args --processes $UWSGI_PROCESSES"
fi
if [ "$UWSGI_THREADS" ]
then
args="$args --threads $UWSGI_THREADS"
fi
exec /usr/sbin/uwsgi $args