2020-12-24 20:54:58 +01:00
|
|
|
FROM centos:centos7
|
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
ENV KASMVNC_BUILD_OS centos
|
|
|
|
ENV KASMVNC_BUILD_OS_CODENAME core
|
|
|
|
|
2022-04-07 15:01:14 +02:00
|
|
|
RUN yum install -y ca-certificates
|
2020-12-24 20:54:58 +01:00
|
|
|
RUN yum install -y build-dep xorg-server libxfont-dev sudo
|
2023-01-18 13:35:36 +01:00
|
|
|
RUN yum install -y gcc cmake git libgnutls28-dev vim wget tightvncserver
|
|
|
|
RUN yum install -y libpng-dev libtiff-dev libgif-dev libavcodec-dev openssl-devel
|
2021-02-05 11:49:47 +01:00
|
|
|
RUN yum install -y make
|
|
|
|
RUN yum group install -y "Development Tools"
|
2023-01-18 13:35:36 +01:00
|
|
|
RUN yum install -y xorg-x11-server-devel zlib-devel
|
2021-02-05 11:49:47 +01:00
|
|
|
RUN yum install -y libxkbfile-devel libXfont2-devel xorg-x11-font-utils \
|
2022-04-07 15:01:14 +02:00
|
|
|
xorg-x11-xtrans-devel xorg-x11-xkb-utils-devel libXrandr-devel pam-devel \
|
|
|
|
gnutls-devel libX11-devel libXtst-devel libXcursor-devel
|
2021-02-05 11:49:47 +01:00
|
|
|
RUN yum install -y mesa-dri-drivers
|
2022-04-07 15:01:14 +02:00
|
|
|
RUN yum install -y ca-certificates
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
# Additions for webp
|
|
|
|
RUN cd /tmp && wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
|
2021-10-19 21:44:36 +02:00
|
|
|
RUN cd /tmp && tar -xzf /tmp/libwebp-*
|
2020-12-24 20:54:58 +01:00
|
|
|
RUN cd /tmp/libwebp-1.0.2 && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
|
|
|
make && make install
|
|
|
|
|
2023-01-18 13:35:36 +01:00
|
|
|
ENV SCRIPTS_DIR=/tmp/scripts
|
|
|
|
COPY builder/scripts $SCRIPTS_DIR
|
|
|
|
RUN $SCRIPTS_DIR/build-libjpeg-turbo
|
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd
|
2020-12-24 20:54:58 +01:00
|
|
|
|
2021-08-16 14:00:55 +02:00
|
|
|
COPY --chown=docker:docker . /src/
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
USER docker
|
|
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|