chat_back/docker/Dockerfile_celery
urec56 a75c56a64d
Some checks failed
/ build (push) Has been cancelled
обновил докер образ, тест ci/cd
2025-04-11 11:56:11 +03:00

25 lines
529 B
Text

FROM git.urec56.ru/urec/python:3.12-alpine
RUN addgroup --S app && adduser --S --G app
ENV APP_HOME=/home/app
WORKDIR $APP_HOME
# RUN apt-get update \
# && apt-get -y install curl gcc libpq-dev \
# && apt-get clean
COPY requirements.txt .
RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \
pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chown -R app:app $APP_HOME
USER app
CMD ["celery", "-A", "app.tasks.celery:celery", "worker", "--loglevel=INFO"]