2023-03-03 12:09:08 +01:00
|
|
|
FROM oraclelinux:9
|
|
|
|
|
|
|
|
ENV KASMVNC_BUILD_OS oracle
|
|
|
|
ENV KASMVNC_BUILD_OS_CODENAME 9
|
|
|
|
ENV XORG_VER 1.20.10
|
|
|
|
|
|
|
|
# Install from stock repos
|
2023-03-03 18:36:53 +01:00
|
|
|
RUN \
|
|
|
|
dnf config-manager --set-enabled ol9_codeready_builder && \
|
|
|
|
dnf config-manager --set-enabled ol9_distro_builder && \
|
|
|
|
dnf install -y \
|
|
|
|
bzip2-devel \
|
|
|
|
ca-certificates \
|
|
|
|
cmake \
|
|
|
|
dnf-plugins-core \
|
|
|
|
gcc \
|
|
|
|
gcc-c++ \
|
|
|
|
git \
|
|
|
|
gnutls-devel \
|
|
|
|
libjpeg-turbo-devel \
|
|
|
|
libpng-devel \
|
|
|
|
libtiff-devel \
|
|
|
|
libxshmfence-devel \
|
|
|
|
make \
|
|
|
|
mesa-dri-drivers \
|
|
|
|
mesa-libGL-devel \
|
|
|
|
mesa-libgbm-devel \
|
|
|
|
openssl-devel \
|
|
|
|
openssl-devel \
|
|
|
|
patch \
|
|
|
|
tigervnc-server \
|
|
|
|
wget \
|
|
|
|
xorg-x11-font-utils \
|
|
|
|
zlib-devel
|
2023-03-03 12:09:08 +01:00
|
|
|
|
|
|
|
# Enable additional repos (epel, powertools, and fusion)
|
|
|
|
RUN dnf install -y oracle-epel-release-el9
|
|
|
|
RUN dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
|
|
|
|
|
|
|
|
# Install from new repos
|
|
|
|
RUN dnf install -y \
|
|
|
|
giflib-devel \
|
|
|
|
lbzip2 \
|
|
|
|
libXfont2-devel \
|
|
|
|
libxkbfile-devel \
|
|
|
|
xorg-x11-server-devel \
|
|
|
|
xorg-x11-xtrans-devel \
|
|
|
|
libXrandr-devel \
|
|
|
|
libXtst-devel \
|
|
|
|
libXcursor-devel
|
|
|
|
|
|
|
|
# Additions for webp
|
|
|
|
RUN cd /tmp && wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
|
|
|
|
RUN cd /tmp && tar -xzf /tmp/libwebp-*
|
|
|
|
RUN cd /tmp/libwebp-1.0.2 && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
|
|
|
make && make install
|
|
|
|
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd
|
|
|
|
|
|
|
|
COPY --chown=docker:docker . /src/
|
|
|
|
|
|
|
|
USER docker
|
|
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|