Skip to content

Commit

Permalink
Add pip to container and setup venv
Browse files Browse the repository at this point in the history
  • Loading branch information
LandryNorris committed May 10, 2024
1 parent 2f7c66f commit c745f2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<version>`.
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:<version>`.

Building
--------
Expand Down

0 comments on commit c745f2c

Please sign in to comment.