From c745f2cb2780e5aabbe3d3184ea1e9a53f44c450 Mon Sep 17 00:00:00 2001 From: LandryNorris Date: Fri, 10 May 2024 10:03:44 -0500 Subject: [PATCH] Add pip to container and setup venv --- Dockerfile | 6 +++++- README.md | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b6e345e..97a404b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,11 @@ FROM ubuntu:latest COPY st-stm32cubeclt_1.14.0_19471_20231121_1200_amd64.deb_bundle.sh /install.sh RUN apt update && apt upgrade -RUN apt-get install -y libusb-1.0-0-dev clang +RUN apt-get install -y libusb-1.0-0-dev clang python3 python3-pip python3-venv + +# Create and activate the virtual environment +RUN python3 -m venv /venv +ENV PATH="/venv/bin:$PATH" # Install CMake using KitWare's APT repository (https://apt.kitware.com/) RUN apt-get update && \ diff --git a/README.md b/README.md index 59fcaea..b456e32 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ Using ----- This image contains the STM32CubeCLT package (located at /opt/st) and is based on -Ubuntu 24.04 with CMake installed using KitWare's APT repository and clang. To use -the package, pull `ghcr.io/revrobotics/stm32cubeclt:`. +Ubuntu 24.04 with CMake installed using KitWare's APT repository and clang and pip3 +installed using the standard Ubuntu repository. To use the package, pull +`ghcr.io/revrobotics/stm32cubeclt:`. Building --------