Dockerfile 1.3 KB

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