Dockerfile 1.4 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. libpulse-dev \
  21. make \
  22. cmake \
  23. unzip \
  24. zip \
  25. sudo \
  26. libgstreamer1.0-dev \
  27. libgstreamer-plugins-base1.0-dev \
  28. ca-certificates \
  29. ninja-build && \
  30. rm -rf /var/lib/apt/lists/*
  31. RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && \
  32. /vcpkg/bootstrap-vcpkg.sh -disableMetrics && \
  33. /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom
  34. RUN groupadd -r user && \
  35. useradd -r -g user user --home /home/user && \
  36. mkdir -p /home/user/rustdesk && \
  37. chown -R user: /home/user && \
  38. echo "user ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/user
  39. WORKDIR /home/user
  40. RUN curl -LO https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
  41. USER user
  42. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
  43. chmod +x rustup.sh && \
  44. ./rustup.sh -y
  45. USER root
  46. ENV HOME=/home/user
  47. COPY ./entrypoint.sh /
  48. ENTRYPOINT ["/entrypoint.sh"]