diff --git a/docker/Dockerfile_aarch64 b/docker/Dockerfile_aarch64 index 52a84aa..bad2356 100644 --- a/docker/Dockerfile_aarch64 +++ b/docker/Dockerfile_aarch64 @@ -58,14 +58,18 @@ RUN apt-get update && apt-get -y --quiet --no-install-recommends install \ && apt-get clean autoclean \ && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/* -# Install Python 3 pip build dependencies first. +# Set Python 3 as the default version RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 -RUN pip3 install wheel setuptools + +# Create a virtual environment for Python packages +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" # Python 3 dependencies installed by pip -RUN pip3 install argparse argcomplete coverage cerberus empy==3.3.4 jinja2 kconfiglib \ - matplotlib==3.0.* numpy packaging pkgconfig pyros-genmsg pyulog \ - pyyaml requests serial six toml psutil pyulog wheel jsonschema +RUN pip3 install argparse argcomplete coverage cerberus empy==3.3.4 jinja2 \ + kconfiglib matplotlib==3.0.* numpy packaging pkgconfig pyros-genmsg \ + pyulog pyyaml requests setuptools serial six toml psutil pyulog wheel \ + jsonschema # astyle v3.1 RUN wget -q https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz -O /tmp/astyle.tar.gz \