feat: use alpine base image for docker
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
ASGI_HOST=${WSGI_HOST:="0.0.0.0"}
|
||||
ASGI_PORT=8000
|
||||
@@ -10,7 +10,7 @@ RUN_CELERY=${RUN_CELERY:="FALSE"}
|
||||
|
||||
|
||||
if [ $RUN_SERVER = "TRUE" ]; then
|
||||
service nginx restart
|
||||
rc-service nginx start
|
||||
uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
|
||||
elif [ $RUN_CELERY = "TRUE" ]; then
|
||||
service nginx stop
|
||||
|
||||
Reference in New Issue
Block a user