2021-06-20 23:27:57 +08:00
FROM debian
WORKDIR /
2023-08-05 22:30:22 +08:00
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 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev cmake ninja-build && rm -rf /var/lib/apt/lists/*
2021-06-20 23:27:57 +08:00
2023-08-05 15:50:10 +08:00
RUN git clone --branch 2023.04.15 --depth= 1 https://github.com/microsoft/vcpkg
2021-06-20 23:27:57 +08:00
RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics
2023-05-27 13:19:10 +08:00
RUN /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom
2021-06-20 23:27:57 +08:00
2021-10-20 13:35:52 +08:00
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
2021-06-20 23:27:57 +08:00
WORKDIR /home/user
2021-07-24 18:41:22 +08:00
RUN wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
2021-06-20 23:27:57 +08:00
USER user
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
RUN chmod +x rustup.sh
RUN ./rustup.sh -y
USER root
2022-05-03 13:28:49 +08:00
ENV HOME = /home/user
2021-06-20 23:27:57 +08:00
COPY ./entrypoint /
ENTRYPOINT [ "/entrypoint" ]