From 710c94564b0d09ae0243a8940071531d5b2b23fa Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:34:04 -0400 Subject: [PATCH] Use a virtual environment... --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11c94cd2..bbc453f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,6 @@ FROM debian:bookworm ARG DEBIAN_FRONTEND=noninteractive -ENV PIP_ROOT_USER_ACTION=ignore - RUN \ apt-get update \ && apt-get install -y --no-install-recommends \ @@ -19,9 +17,15 @@ RUN \ patch \ python3 \ python3-pip \ + python3-virtualenv \ unzip \ - xz-utils \ - && pip install jq ruamel.yaml + xz-utils + +RUN \ + virtualenv /opt/venv \ + /opt/venv/pip install jq ruamel.yaml + +ENV PATH="/opt/venv/bin:$PATH" # Install Simplicity Commander (unfortunately no stable URL available, this # is known to be working with Commander_linux_x86_64_1v15p0b1306.tar.bz).