2020-09-20 14:16:44 +02:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
2020-12-24 20:54:58 +01:00
|
|
|
ENV KASMVNC_BUILD_OS ubuntu
|
2021-01-28 10:10:46 +01:00
|
|
|
ENV KASMVNC_BUILD_OS_CODENAME bionic
|
2021-03-26 20:53:04 +01:00
|
|
|
ENV XORG_VER 1.20.10
|
2020-12-24 20:54:58 +01:00
|
|
|
|
2020-09-20 14:16:44 +02:00
|
|
|
RUN sed -i 's$# deb-src$deb-src$' /etc/apt/sources.list
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y install sudo
|
|
|
|
|
2020-09-27 21:18:10 +02:00
|
|
|
RUN apt-get update && apt-get -y build-dep xorg-server libxfont-dev
|
2023-01-24 09:46:53 +01:00
|
|
|
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
|
2020-09-20 14:16:44 +02:00
|
|
|
|
2023-01-24 09:46:53 +01:00
|
|
|
ENV SCRIPTS_DIR=/tmp/scripts
|
|
|
|
COPY builder/scripts $SCRIPTS_DIR
|
2023-01-26 05:18:17 +01:00
|
|
|
RUN $SCRIPTS_DIR/build-webp
|
2023-01-24 09:46:53 +01:00
|
|
|
RUN $SCRIPTS_DIR/build-libjpeg-turbo
|
|
|
|
|
2020-09-20 14:16:44 +02:00
|
|
|
# Fix for older required libs
|
2020-09-27 21:18:10 +02:00
|
|
|
#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
|
2020-09-20 14:16:44 +02:00
|
|
|
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
|
|
|
2021-08-16 14:00:55 +02:00
|
|
|
COPY --chown=docker:docker . /src/
|
2020-09-20 14:16:44 +02:00
|
|
|
|
|
|
|
USER docker
|
|
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|