fix setuptools issue for python3.12 (#67)

* fix setuptools issue for python3.12

* one test file fot tests and ci
This commit is contained in:
Dmitry Afanasyev
2023-12-17 15:20:02 +03:00
committed by GitHub
parent 4e7ddf07fd
commit 4117a2f467
9 changed files with 22 additions and 49 deletions

View File

@@ -59,7 +59,9 @@ COPY ./scripts/start-bot.sh /app/
RUN chmod +x ./start-bot.sh
COPY --from=compile-image /app/.venv /app/.venv
ENV PATH="/app/.venv/bin:$PATH"
# workarroud fo python3.12 and setuptools not found for fastapi users
RUN pip3 uninstall -y setuptools && pip3 install --upgrade setuptools wheel
USER ${USER}
ENV PATH="/app/.venv/bin:$PATH"