fix: Set is_update_available flag in versioncheck.py

build: Update AIDER_DOCKER_IMAGE environment variable in Dockerfile
This commit is contained in:
Paul Gauthier 2024-08-06 11:22:05 -03:00 committed by Paul Gauthier (aider)
parent df5d5bdf78
commit 14b26420b1
2 changed files with 3 additions and 2 deletions

View file

@ -41,6 +41,7 @@ def check_version(io, just_check=False):
fname.parent.mkdir(parents=True, exist_ok=True) fname.parent.mkdir(parents=True, exist_ok=True)
fname.touch() fname.touch()
is_update_available = True
if just_check: if just_check:
if is_update_available: if is_update_available:
io.tool_output("Update available") io.tool_output("Update available")

View file

@ -21,7 +21,7 @@ RUN git config --system --add safe.directory /app
######################### #########################
FROM base AS aider-full FROM base AS aider-full
ENV AIDER_DOCKER_IMAGE=true ENV AIDER_DOCKER_IMAGE=paulgauthier/aider-full
COPY . /tmp/aider COPY . /tmp/aider
RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \
@ -37,7 +37,7 @@ ENTRYPOINT ["/venv/bin/aider"]
######################### #########################
FROM base AS aider FROM base AS aider
ENV AIDER_DOCKER_IMAGE=true ENV AIDER_DOCKER_IMAGE=paulgauthier/aider
COPY . /tmp/aider COPY . /tmp/aider
RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \