mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 10:43:55 +08:00
Dockerfile.openpilot: don't set UV_PROJECT_ENVIRONMENT (#36246)
* Dockerfile.openpilot: don't uv sync with root * Revert "Dockerfile.openpilot: don't uv sync with root" This reverts commit 2c271d0b5b55d6ae2ece6b28dc90a96e6e891ded. * don't set UV_PROJECT_ENVIRONMENT
This commit is contained in:
committed by
GitHub
parent
d567442136
commit
150ff72646
@@ -11,4 +11,4 @@ COPY . ${OPENPILOT_PATH}/
|
||||
|
||||
ENV UV_BIN="/home/batman/.local/bin/"
|
||||
ENV PATH="$UV_BIN:$PATH"
|
||||
RUN uv run scons --cache-readonly -j$(nproc)
|
||||
RUN UV_PROJECT_ENVIRONMENT=$VIRTUAL_ENV uv run scons --cache-readonly -j$(nproc)
|
||||
|
||||
@@ -71,8 +71,8 @@ USER $USER
|
||||
COPY --chown=$USER pyproject.toml uv.lock /home/$USER
|
||||
COPY --chown=$USER tools/install_python_dependencies.sh /home/$USER/tools/
|
||||
|
||||
ENV UV_PROJECT_ENVIRONMENT=/home/$USER/.venv
|
||||
ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
|
||||
ENV VIRTUAL_ENV=/home/$USER/.venv
|
||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
RUN cd /home/$USER && \
|
||||
tools/install_python_dependencies.sh && \
|
||||
rm -rf tools/ pyproject.toml uv.lock .cache
|
||||
|
||||
Reference in New Issue
Block a user