mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-10-04 05:41:58 +08:00
38 lines
2 KiB
Text
38 lines
2 KiB
Text
FROM debian:trixie-slim
|
|
|
|
ENV KASMVNC_BUILD_OS debian
|
|
ENV KASMVNC_BUILD_OS_CODENAME trixie
|
|
ENV XORG_VER 21.1.7
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN \
|
|
echo "**** add all sources ****" && \
|
|
echo "deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
|
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb-src http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb http://deb.debian.org/debian trixie-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb-src http://deb.debian.org/debian trixie-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb http://security.debian.org/debian-security/ trixie-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
echo "deb-src http://security.debian.org/debian-security/ trixie-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
|
rm -f /etc/apt/sources.list.d/debian.sources
|
|
|
|
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 ninja-build cmake nasm git libgnutls28-dev vim wget tightvncserver curl
|
|
RUN apt-get update && apt-get -y install libpng-dev libtiff-dev libgif-dev libavcodec-dev libssl-dev libxrandr-dev \
|
|
libxcursor-dev libavformat-dev libswscale-dev
|
|
|
|
ENV SCRIPTS_DIR=/tmp/scripts
|
|
COPY builder/scripts $SCRIPTS_DIR
|
|
RUN $SCRIPTS_DIR/build-deps.sh
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
|
|
COPY --chown=docker:docker . /src/
|
|
|
|
USER docker
|
|
ENTRYPOINT ["/src/builder/build.sh"]
|