Dockerfile 952 B

123456789101112131415161718192021
  1. FROM debian
  2. WORKDIR /
  3. RUN apt update -y && apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake unzip zip sudo
  4. RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82
  5. RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics
  6. RUN /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus
  7. RUN groupadd -r user && useradd -r -g user user --home /home/user && mkdir -p /home/user && chown user /home/user && echo "user ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/user
  8. WORKDIR /home/user
  9. RUN wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
  10. USER user
  11. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
  12. RUN chmod +x rustup.sh
  13. RUN ./rustup.sh -y
  14. USER root
  15. COPY ./entrypoint /
  16. ENTRYPOINT ["/entrypoint"]