2023-10-20 05:19:34 +08:00
|
|
|
FROM debian:bullseye-slim
|
2021-06-20 23:27:57 +08:00
|
|
|
|
|
|
|
WORKDIR /
|
2023-10-20 05:19:34 +08:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt update -y && \
|
|
|
|
apt install --yes --no-install-recommends \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
nasm \
|
|
|
|
yasm \
|
|
|
|
libgtk-3-dev \
|
|
|
|
clang \
|
|
|
|
libxcb-randr0-dev \
|
|
|
|
libxdo-dev \
|
|
|
|
libxfixes-dev \
|
|
|
|
libxcb-shape0-dev \
|
|
|
|
libxcb-xfixes0-dev \
|
|
|
|
libasound2-dev \
|
2024-05-18 08:21:40 +08:00
|
|
|
libpam0g-dev \
|
2023-10-20 05:19:34 +08:00
|
|
|
libpulse-dev \
|
|
|
|
make \
|
|
|
|
cmake \
|
|
|
|
unzip \
|
|
|
|
zip \
|
|
|
|
sudo \
|
|
|
|
libgstreamer1.0-dev \
|
|
|
|
libgstreamer-plugins-base1.0-dev \
|
|
|
|
ca-certificates \
|
|
|
|
ninja-build && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2021-06-20 23:27:57 +08:00
|
|
|
|
2023-10-20 05:19:34 +08:00
|
|
|
RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && \
|
|
|
|
/vcpkg/bootstrap-vcpkg.sh -disableMetrics && \
|
|
|
|
/vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom
|
|
|
|
|
|
|
|
RUN groupadd -r user && \
|
|
|
|
useradd -r -g user user --home /home/user && \
|
|
|
|
mkdir -p /home/user/rustdesk && \
|
|
|
|
chown -R 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
|
2023-08-06 23:56:36 +08:00
|
|
|
RUN curl -LO https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
|
2023-10-20 05:19:34 +08:00
|
|
|
|
2021-06-20 23:27:57 +08:00
|
|
|
USER user
|
2023-10-20 05:19:34 +08:00
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
|
|
|
|
chmod +x rustup.sh && \
|
|
|
|
./rustup.sh -y
|
2021-06-20 23:27:57 +08:00
|
|
|
|
|
|
|
USER root
|
2022-05-03 13:28:49 +08:00
|
|
|
ENV HOME=/home/user
|
2023-10-20 05:19:34 +08:00
|
|
|
COPY ./entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|