Skip to content

Commit c745f2c

Browse files
committed
Add pip to container and setup venv
1 parent 2f7c66f commit c745f2c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ FROM ubuntu:latest
22
COPY st-stm32cubeclt_1.14.0_19471_20231121_1200_amd64.deb_bundle.sh /install.sh
33

44
RUN apt update && apt upgrade
5-
RUN apt-get install -y libusb-1.0-0-dev clang
5+
RUN apt-get install -y libusb-1.0-0-dev clang python3 python3-pip python3-venv
6+
7+
# Create and activate the virtual environment
8+
RUN python3 -m venv /venv
9+
ENV PATH="/venv/bin:$PATH"
610

711
# Install CMake using KitWare's APT repository (https://apt.kitware.com/)
812
RUN apt-get update && \

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Using
1111
-----
1212

1313
This image contains the STM32CubeCLT package (located at /opt/st) and is based on
14-
Ubuntu 24.04 with CMake installed using KitWare's APT repository and clang. To use
15-
the package, pull `ghcr.io/revrobotics/stm32cubeclt:<version>`.
14+
Ubuntu 24.04 with CMake installed using KitWare's APT repository and clang and pip3
15+
installed using the standard Ubuntu repository. To use the package, pull
16+
`ghcr.io/revrobotics/stm32cubeclt:<version>`.
1617

1718
Building
1819
--------

0 commit comments

Comments
 (0)