2021-01-28 11:46:21 +01:00
|
|
|
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
|
2022-09-07 12:11:06 +02:00
|
|
|
ENV CC=gcc-11
|
|
|
|
ENV CXX=g++-11
|
2021-01-28 11:46:21 +01:00
|
|
|
|
|
|
|
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
|
2022-09-07 12:11:06 +02:00
|
|
|
RUN apt-get update && apt-get -y install gcc-11 g++-11
|
2023-01-24 09:45:30 +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
|
2021-01-28 11:46:21 +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-*
|
2021-01-28 11:46:21 +01:00
|
|
|
RUN cd /tmp/libwebp-1.0.2 && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
2022-09-07 12:11:06 +02:00
|
|
|
make -j$(nproc) && make install
|
2021-01-28 11:46:21 +01:00
|
|
|
|
2023-01-24 09:45:30 +01:00
|
|
|
ENV SCRIPTS_DIR=/tmp/scripts
|
|
|
|
COPY builder/scripts $SCRIPTS_DIR
|
|
|
|
RUN $SCRIPTS_DIR/build-libjpeg-turbo
|
|
|
|
|
2021-01-28 11:46:21 +01: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/
|
2021-01-28 11:46:21 +01:00
|
|
|
|
|
|
|
USER docker
|
|
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|