Dockerfile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. FROM debian:bullseye-slim
  2. WORKDIR /
  3. ARG DEBIAN_FRONTEND=noninteractive
  4. ENV VCPKG_FORCE_SYSTEM_BINARIES=1
  5. RUN apt update -y && \
  6. apt install --yes --no-install-recommends \
  7. g++ \
  8. gcc \
  9. git \
  10. curl \
  11. nasm \
  12. yasm \
  13. libgtk-3-dev \
  14. clang \
  15. libxcb-randr0-dev \
  16. libxdo-dev \
  17. libxfixes-dev \
  18. libxcb-shape0-dev \
  19. libxcb-xfixes0-dev \
  20. libasound2-dev \
  21. libpam0g-dev \
  22. libpulse-dev \
  23. make \
  24. wget \
  25. libssl-dev \
  26. unzip \
  27. zip \
  28. sudo \
  29. libgstreamer1.0-dev \
  30. libgstreamer-plugins-base1.0-dev \
  31. ca-certificates \
  32. ninja-build && \
  33. rm -rf /var/lib/apt/lists/*
  34. RUN wget https://github.com/Kitware/CMake/releases/download/v3.30.6/cmake-3.30.6.tar.gz --no-check-certificate && \
  35. tar xzf cmake-3.30.6.tar.gz && \
  36. cd cmake-3.30.6 && \
  37. ./configure --prefix=/usr/local && \
  38. make && \
  39. make install
  40. RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && \
  41. /vcpkg/bootstrap-vcpkg.sh -disableMetrics && \
  42. /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom
  43. RUN groupadd -r user && \
  44. useradd -r -g user user --home /home/user && \
  45. mkdir -p /home/user/rustdesk && \
  46. chown -R user: /home/user && \
  47. echo "user ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/user
  48. WORKDIR /home/user
  49. RUN curl -LO https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
  50. USER user
  51. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
  52. chmod +x rustup.sh && \
  53. ./rustup.sh -y
  54. USER root
  55. ENV HOME=/home/user
  56. COPY ./entrypoint.sh /
  57. ENTRYPOINT ["/entrypoint.sh"]