Skip to content

Commit 56806f8

Browse files
Ad the python requirement
This patch adds the python requirements needed to run python demos.
1 parent d0d6953 commit 56806f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile.redhat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,5 +429,14 @@ COPY --from=pkg /usr/local/lib64/python3.*/site-packages/MarkupSafe-3.0.2.dist-i
429429
COPY --from=pkg /usr/local/lib64/python3.*/site-packages/markupsafe /ovms/python_deps/markupsafe
430430

431431
COPY --from=pkg /licenses /licenses
432+
433+
# Setup Python Demos Environment
434+
COPY demos/python_demos/requirements.txt .
435+
RUN if [ -f /usr/bin/dnf ] ; then export DNF_TOOL=dnf ; \
436+
else export DNF_TOOL=microdnf ; fi ; \
437+
$DNF_TOOL install -y python3-pip git iproute net-tools ; $DNF_TOOL clean all ; \
438+
pip3 install --no-cache-dir -r requirements.txt ; \
439+
rm -f requirements.txt
440+
432441
USER ovms
433442
ENTRYPOINT ["/ovms/bin/ovms"]

0 commit comments

Comments
 (0)