diff --git a/Dockerfile b/Dockerfile index d97b10aeafa1a998850838898df42b2997d5b63e..8a49076a23139b93293812449d345afd2228ac4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app ARG ARTIFACT_VERSION -RUN apk add --no-cache gcc libc-dev libffi-dev && \ +RUN apk add --no-cache gcc libc-dev libffi-dev curl vim && \ addgroup -S appgroup && adduser -S appuser -G appgroup -h /app RUN pip install \ diff --git a/start-app.sh b/start-app.sh index e4bb84f3582f9e7bae6017bb8b1dd73e0c1962c8..397e8ee59d185c43c143dea46a6b57f2b7d605d2 100755 --- a/start-app.sh +++ b/start-app.sh @@ -5,6 +5,5 @@ set -o nounset cd /app/gso PYTHONPATH=.. python main.py db upgrade heads -# Start the FastAPI application cd /app python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080 diff --git a/start-scheduler.sh b/start-scheduler.sh index 5da2c440a09b56a1ee1599c5e8839cd1d9656818..a8c36fd2ac000d83e48abb7178fbf4c5c23ce4ad 100755 --- a/start-scheduler.sh +++ b/start-scheduler.sh @@ -4,5 +4,4 @@ set -o errexit set -o nounset cd /app - -celery -A gso.worker beat -l info -S redbeat.RedBeatScheduler +python -m celery -A gso.worker beat -l info -S redbeat.RedBeatScheduler diff --git a/start-worker.sh b/start-worker.sh index f3dbbac3805274f0064de911e0ce1fca5d601b77..3c18dd4422ae6d60e16c78f45aa7189659dd5ca9 100755 --- a/start-worker.sh +++ b/start-worker.sh @@ -4,5 +4,4 @@ set -o errexit set -o nounset cd /app - -celery -A gso.worker worker --loglevel=info \ No newline at end of file +python -m celery -A gso.worker worker --loglevel=info