FROM kalilinux/kali-rolling:latest ENV KASMVNC_BUILD_OS kali ENV KASMVNC_BUILD_OS_CODENAME kali-rolling ENV XORG_VER 1.20.10 ENV DEBIAN_FRONTEND noninteractive ENV CC=gcc-11 ENV CXX=g++-11 RUN grep '^deb' /etc/apt/sources.list | sed 's#^deb#deb-src#' >> /etc/apt/sources.list RUN apt-get update && \ apt-get -y install sudo RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata RUN apt-get update && apt-get -y build-dep xorg-server libxfont-dev RUN apt-get update && apt-get -y install gcc-11 g++-11 curl RUN apt-get update && apt-get -y install cmake git libgnutls28-dev vim wget tightvncserver RUN apt-get update && apt-get -y install libpng-dev libtiff-dev libgif-dev libavcodec-dev libssl-dev libxrandr-dev libxcursor-dev ENV SCRIPTS_DIR=/tmp/scripts COPY builder/scripts $SCRIPTS_DIR RUN $SCRIPTS_DIR/build-webp RUN $SCRIPTS_DIR/build-libjpeg-turbo RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo COPY --chown=docker:docker . /src/ USER docker ENTRYPOINT ["/src/builder/build.sh"]