mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-21 15:43:28 +01:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
FROM centos:centos7
|
|
|
|
ENV KASMVNC_BUILD_OS centos
|
|
ENV KASMVNC_BUILD_OS_CODENAME core
|
|
|
|
RUN yum install -y ca-certificates
|
|
RUN yum install -y build-dep xorg-server libxfont-dev sudo
|
|
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
|
|
RUN yum install -y make
|
|
RUN yum group install -y "Development Tools"
|
|
RUN yum install -y xorg-x11-server-devel zlib-devel
|
|
RUN yum install -y libxkbfile-devel libXfont2-devel xorg-x11-font-utils \
|
|
xorg-x11-xtrans-devel xorg-x11-xkb-utils-devel libXrandr-devel pam-devel \
|
|
gnutls-devel libX11-devel libXtst-devel libXcursor-devel
|
|
RUN yum install -y mesa-dri-drivers
|
|
RUN yum install -y ca-certificates
|
|
|
|
# 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
|
|
|
|
ENV SCRIPTS_DIR=/tmp/scripts
|
|
COPY builder/scripts $SCRIPTS_DIR
|
|
RUN $SCRIPTS_DIR/build-libjpeg-turbo
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd
|
|
|
|
COPY --chown=docker:docker . /src/
|
|
|
|
USER docker
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|