2021-01-28 10:10:46 +01:00
|
|
|
FROM ubuntu:focal
|
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 focal
|
2020-12-24 20:54:58 +01:00
|
|
|
ENV XORG_VER 1.20.8
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
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
|
|
|
|
|
2021-01-19 10:44:32 +01:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends tzdata
|
2020-09-27 21:18:10 +02:00
|
|
|
RUN apt-get update && apt-get -y build-dep xorg-server libxfont-dev
|
|
|
|
RUN apt-get update && apt-get -y install cmake git libjpeg-dev libgnutls28-dev vim wget tightvncserver
|
|
|
|
RUN apt-get update && apt-get -y install libjpeg-dev libpng-dev libtiff-dev libgif-dev libavcodec-dev libssl-dev
|
2020-09-20 14:16:44 +02:00
|
|
|
|
|
|
|
# Additions for webp
|
|
|
|
RUN cd /tmp && wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
|
|
|
|
RUN cd /tmp && tar -xzvf /tmp/libwebp-*
|
2020-09-27 21:18:10 +02:00
|
|
|
RUN cd /tmp/libwebp-1.0.2 && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
|
|
|
make && make install
|
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"]
|