move deps to pyproject

This commit is contained in:
qananasikq
2026-04-09 20:34:20 +03:00
parent 437aedad45
commit 042ffdcfbb
8 changed files with 1060 additions and 27 deletions

View File

@@ -9,14 +9,17 @@ WORKDIR /app
RUN apt-get update -qq && apt-get install -y --no-install-recommends xvfb \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY pyproject.toml uv.lock ./
RUN pip install --no-cache-dir uv \
&& uv export --format requirements-txt --no-dev --no-hashes --no-emit-project --frozen -o /tmp/requirements.txt \
&& pip install --no-cache-dir -r /tmp/requirements.txt
COPY . .
RUN python -m compileall -q iaai_scraper
RUN chmod +x entrypoint.sh
STOPSIGNAL SIGINT
# По умолчанию API, но worker/beat переопределяют CMD в docker-compose
# По умолчанию API, но worker/beat переопределяют CMD в docker-compose
ENTRYPOINT ["./entrypoint.sh"]
CMD ["uvicorn", "iaai_scraper.api.app:app", "--host", "0.0.0.0", "--port", "8000"]