FROM quay.io/urec56/python312 RUN addgroup --system app && adduser --system --group app ENV APP_HOME=/home/app WORKDIR $APP_HOME RUN apt-get update \ && apt-get -y install curl gcc libpq-dev \ && apt-get clean RUN pip install --upgrade pip setuptools COPY requirements.txt . RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \ pip install \ --proxy= \ -r requirements.txt COPY . . RUN chown -R app:app $APP_HOME USER app CMD ["celery", "-A", "app.tasks.celery:celery", "worker", "--loglevel=INFO"]