Fixes Rq in Docker Container

This commit is contained in:
2023-08-25 03:59:33 -03:00
parent 05757f93b5
commit 56275bca08
2 changed files with 7 additions and 3 deletions

View File

@@ -61,4 +61,4 @@ WORKDIR $PYSETUP_PATH
EXPOSE 5000-9000
# Run your app
CMD [ "python", "-m", "storage_service" ]
CMD [ "./run-queue.sh" ]

View File

@@ -1,6 +1,10 @@
#!/bin/sh
if [[ $1 == "--queue" || $1 == "-q" ]]; then
rq worker --with-scheduler
exit 0
else
python -m storage_service
fi
exec "$@"