chore: update Dockerfiles to use Python 3.12 and adjust docs directory addition

This commit is contained in:
mrT23
2024-10-25 17:35:28 +03:00
parent a221f8edd0
commit 8e94c8b2f5
2 changed files with 3 additions and 1 deletions

View File

@ -1,10 +1,11 @@
FROM python:3.10 as base FROM python:3.12 as base
WORKDIR /app WORKDIR /app
ADD pyproject.toml . ADD pyproject.toml .
ADD requirements.txt . ADD requirements.txt .
RUN pip install . && rm pyproject.toml requirements.txt RUN pip install . && rm pyproject.toml requirements.txt
ENV PYTHONPATH=/app ENV PYTHONPATH=/app
ADD docs docs
ADD pr_agent pr_agent ADD pr_agent pr_agent
ADD github_action/entrypoint.sh / ADD github_action/entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View File

@ -3,6 +3,7 @@ FROM python:3.12.3 AS base
WORKDIR /app WORKDIR /app
ADD pyproject.toml . ADD pyproject.toml .
ADD requirements.txt . ADD requirements.txt .
ADD docs docs
RUN pip install . && rm pyproject.toml requirements.txt RUN pip install . && rm pyproject.toml requirements.txt
ENV PYTHONPATH=/app ENV PYTHONPATH=/app