From a428cf8d4cb92222e665ee04e08734699385d086 Mon Sep 17 00:00:00 2001 From: Evan Harvey Date: Wed, 5 Jun 2024 13:52:47 -0600 Subject: [PATCH] Update Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9e8b6670..301c7556c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,31 @@ ARG BASE_IMAGE_ARG=registry.access.redhat.com/ubi8:latest FROM ${BASE_IMAGE_ARG} +COPY docker/xvfb-rpms /tmp + RUN yum -y install python3.11 \ python3.11-devel \ python3.11-pip \ mesa-libGL \ python3.11-tkinter \ xz \ - gcc + gcc \ + /tmp/libfontenc-1.1.3-8.el8.x86_64.rpm \ + /tmp/libICE-1.0.9-15.el8.x86_64.rpm \ + /tmp/libSM-1.2.3-1.el8.x86_64.rpm \ + /tmp/libXdmcp-1.1.3-1.el8.x86_64.rpm \ + /tmp/libXfont2-2.0.3-2.el8.x86_64.rpm \ + /tmp/libxkbfile-1.1.0-1.el8.x86_64.rpm \ + /tmp/libXmu-1.1.3-1.el8.x86_64.rpm \ + /tmp/libXt-1.1.5-12.el8.x86_64.rpm \ + /tmp/pixman-0.38.4-3.el8_9.x86_64.rpm \ + /tmp/python3-xvfbwrapper-0.2.9-2.el8.noarch.rpm \ + /tmp/xkeyboard-config-2.28-1.el8.noarch.rpm \ + /tmp/xorg-x11-server-common-1.20.11-17.el8.x86_64.rpm \ + /tmp/xorg-x11-server-Xvfb-1.20.11-17.el8.x86_64.rpm \ + /tmp/xorg-x11-xauth-1.0.9-12.el8.x86_64.rpm \ + /tmp/xorg-x11-xkb-utils-7.7-28.el8.x86_64.rpm + # Installing ffmpeg via relies on the rpmfusion repo and SDL2 # The SDL2 yum package is not currently available in ubi8 @@ -22,5 +40,7 @@ RUN tar -xf ffmpeg-*-amd64-static.tar.xz && \ ENV PYTHONPATH=/code COPY requirements.txt /code/ -RUN python3 -m pip install -r requirements.txt +RUN python3 -m pip install -r requirements.txt && \ + python3 -m pip install pip-licenses && \ + pip-licenses ENV PATH=$HOME/.local/bin:$PATH \ No newline at end of file