2021-09-07 14:11:21 +02:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
ENV KASMVNC_BUILD_OS ubuntu
|
|
|
|
ENV KASMVNC_BUILD_OS_CODENAME bionic
|
|
|
|
ENV XORG_VER 1.20.10
|
|
|
|
|
|
|
|
RUN sed -i 's$# deb-src$deb-src$' /etc/apt/sources.list
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y install sudo
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get -y build-dep xorg-server libxfont-dev
|
|
|
|
RUN apt-get update && apt-get -y install cmake git libgnutls28-dev vim wget tightvncserver
|
2022-04-07 15:01:14 +02:00
|
|
|
RUN apt-get update && apt-get -y install libpng-dev libtiff-dev libgif-dev libavcodec-dev libssl-dev libxrandr-dev libxcursor-dev
|
2021-09-07 14:11:21 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y cmake nasm gcc
|
|
|
|
RUN git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
|
|
|
|
RUN export MAKEFLAGS=-j`nproc`; cd libjpeg-turbo && cmake -G"Unix Makefiles" && make deb
|
|
|
|
RUN export MAKEFLAGS=-j`nproc`; cd libjpeg-turbo && cmake -DCMAKE_INSTALL_PREFIX=/usr/local -G"Unix Makefiles" && make && make install
|
|
|
|
|
|
|
|
# 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-*
|
2021-09-07 14:11:21 +02:00
|
|
|
RUN cd /tmp/libwebp-1.0.2 && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
|
|
|
make && make install
|
|
|
|
|
|
|
|
# Fix for older required libs
|
|
|
|
#RUN cd /tmp && wget http://launchpadlibrarian.net/347526424/libxfont1-dev_1.5.2-4ubuntu2_amd64.deb && \
|
|
|
|
# wget http://launchpadlibrarian.net/347526425/libxfont1_1.5.2-4ubuntu2_amd64.deb && \
|
|
|
|
# dpkg -i libxfont1_1.5.2-4ubuntu2_amd64.deb && \
|
|
|
|
# dpkg -i libxfont1-dev_1.5.2-4ubuntu2_amd64.deb
|
|
|
|
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
|
|
|
|
|
|
COPY --chown=docker:docker . /src
|
|
|
|
|
|
|
|
USER docker
|
|
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|