mirror of
https://github.com/zebrajr/ArchiveBox.git
synced 2025-12-06 12:20:54 +01:00
make sure uv is using the right python binary
This commit is contained in:
parent
26eb75e4e6
commit
8b67186c93
|
|
@ -227,12 +227,14 @@ WORKDIR "$CODE_DIR"
|
||||||
# COPY --chown=root:root --chmod=755 pyproject.toml "$CODE_DIR/"
|
# COPY --chown=root:root --chmod=755 pyproject.toml "$CODE_DIR/"
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \
|
RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \
|
||||||
echo "[+] UV Creating /venv using python ${PYTHON_VERSION} for ${TARGETPLATFORM} (provided by base image)..." \
|
echo "[+] UV Creating /venv using python ${PYTHON_VERSION} for ${TARGETPLATFORM} (provided by base image)..." \
|
||||||
|
&& uv python find --system \
|
||||||
&& uv venv /venv
|
&& uv venv /venv
|
||||||
ENV VIRTUAL_ENV=/venv PATH="/venv/bin:$PATH"
|
ENV VIRTUAL_ENV=/venv PATH="/venv/bin:$PATH"
|
||||||
RUN uv pip install setuptools pip \
|
RUN uv pip install setuptools pip \
|
||||||
&& ( \
|
&& ( \
|
||||||
which python3 && python3 --version \
|
which python3 && python3 --version \
|
||||||
&& which uv && uv version \
|
&& which uv && uv version \
|
||||||
|
&& uv python find --system && uv python find \
|
||||||
&& echo -e '\n\n' \
|
&& echo -e '\n\n' \
|
||||||
) | tee -a /VERSION.txt
|
) | tee -a /VERSION.txt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user