mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Make uv sync
use a specific venv when building
If not specifying it, it tries to write a `.venv` in the current dir which isn't writeable, and fails.
This commit is contained in:
parent
fca1e863f9
commit
6b3dee58a3
1 changed files with 3 additions and 2 deletions
|
@ -182,8 +182,9 @@ ENV PATH="$PATH:/home/user/.local/bin"
|
|||
RUN pipx install uv
|
||||
|
||||
COPY pyproject.toml uv.lock /home/user/dangerzone/
|
||||
# XXX Not sure why, but permission problems with the command below. Commenting it out for now as `uv` will get the deps later on.
|
||||
# RUN cd /home/user/dangerzone && uv venv .venv-{distro}-{version} && uv sync
|
||||
RUN uv venv /home/user/.venv
|
||||
ENV UV_PROJECT_ENVIRONMENT="/home/user/.venv"
|
||||
RUN cd /home/user/dangerzone && uv sync
|
||||
"""
|
||||
|
||||
DOCKERFILE_BUILD_DEBIAN_DEPS = r"""
|
||||
|
|
Loading…
Reference in a new issue