Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Jun 5, 2024
1 parent 2688800 commit a428cf8
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit a428cf8

Please sign in to comment.