cicd: slightly refactored python Dockerfiles

This commit is contained in:
nihonium 2025-12-19 23:03:03 +03:00
parent 490443b63f
commit b33997772b
Signed by: nihonium
GPG key ID: 0251623741027CFC
2 changed files with 1 additions and 19 deletions

View file

@ -1,13 +1,6 @@
FROM python:3.12-slim
WORKDIR /app/modules/anime_etl
# RUN apt-get update && apt-get install -y --no-install-recommends \
# build-essential \
# libpq-dev \
# ca-certificates \
# && rm -rf /var/lib/apt/lists/*
COPY modules/anime_etl/pyproject.toml modules/anime_etl/uv.lock ./
RUN pip install --no-cache-dir uv \
@ -17,5 +10,4 @@ COPY modules/anime_etl ./
ENV NYANIMEDB_MEDIA_ROOT=/media
# было: CMD ["python", "-m", "rabbit_worker"]
CMD ["uv", "run", "python", "-m", "rabbit_worker"]