Docker build has errors section is errors (dependencies) issues #1732

Closed
opened 2026-02-21 00:03:11 -05:00 by deekerman · 2 comments
Owner

Originally created by @ksingh7 on GitHub (May 1, 2023).

Bug Description

Error while building via docker , as mentioned in this documentation

root@ubuntu-mbp:~/git/rustdesk# 
root@ubuntu-mbp:~/git/rustdesk# docker build -t "rustdesk-builder" .
[+] Building 71.5s (8/16)                                                                                                                                               
 => [internal] load .dockerignore                                                                                                                                  0.0s
 => => transferring context: 2B                                                                                                                                    0.0s
 => [internal] load build definition from Dockerfile                                                                                                               0.0s
 => => transferring dockerfile: 1.06kB                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/debian:latest                                                                                                   2.2s
 => [internal] load build context                                                                                                                                  0.0s
 => => transferring context: 32B                                                                                                                                   0.0s
 => CACHED [ 1/13] FROM docker.io/library/debian@sha256:0a78ed641b76252739e28ebbbe8cdbd80dc367fba4502565ca839e5803cfd86e                                           0.0s
 => [ 2/13] 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   58.5s
 => [ 3/13] RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82                                 10.5s
 => ERROR [ 4/13] RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics                                                                                                    0.3s 
------                                                                                                                                                                  
 > [ 4/13] RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics:                                                                                                               
#0 0.285 Could not find ninja. Please install it (and other dependencies) with:                                                                                         
#0 0.285 sudo apt-get install cmake ninja-build                                                                                                                         
------                                                                                                                                                                  
Dockerfile:7
--------------------
   5 |     
   6 |     RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82
   7 | >>> RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics
   8 |     RUN /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus
   9 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c /vcpkg/bootstrap-vcpkg.sh -disableMetrics" did not complete successfully: exit code: 1
root@ubuntu-mbp:~/git/rustdesk# 
root@ubuntu-mbp:~/git/rustdesk# 

How to Reproduce

Begin by cloning the repository and building the Docker container:

git clone https://github.com/rustdesk/rustdesk
cd rustdesk
docker build -t "rustdesk-builder" .

Expected Behavior

Docker container should successfully build

Operating system(s) on local side and remote side

Ubuntu (Arm) , Amazon Linux (x86) , MacOS (M2)

RustDesk Version(s) on local side and remote side

Master Branch

Screenshots

image

Additional Context

No response

Originally created by @ksingh7 on GitHub (May 1, 2023). ### Bug Description Error while building via docker , as mentioned in this [documentation](https://github.com/rustdesk/rustdesk#how-to-build-with-docker) ``` root@ubuntu-mbp:~/git/rustdesk# root@ubuntu-mbp:~/git/rustdesk# docker build -t "rustdesk-builder" . [+] Building 71.5s (8/16) => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.06kB 0.0s => [internal] load metadata for docker.io/library/debian:latest 2.2s => [internal] load build context 0.0s => => transferring context: 32B 0.0s => CACHED [ 1/13] FROM docker.io/library/debian@sha256:0a78ed641b76252739e28ebbbe8cdbd80dc367fba4502565ca839e5803cfd86e 0.0s => [ 2/13] 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 58.5s => [ 3/13] RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82 10.5s => ERROR [ 4/13] RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics 0.3s ------ > [ 4/13] RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics: #0 0.285 Could not find ninja. Please install it (and other dependencies) with: #0 0.285 sudo apt-get install cmake ninja-build ------ Dockerfile:7 -------------------- 5 | 6 | RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82 7 | >>> RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics 8 | RUN /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus 9 | -------------------- ERROR: failed to solve: process "/bin/sh -c /vcpkg/bootstrap-vcpkg.sh -disableMetrics" did not complete successfully: exit code: 1 root@ubuntu-mbp:~/git/rustdesk# root@ubuntu-mbp:~/git/rustdesk# ``` ### How to Reproduce Begin by cloning the repository and building the Docker container: ``` git clone https://github.com/rustdesk/rustdesk cd rustdesk docker build -t "rustdesk-builder" . ``` ### Expected Behavior Docker container should successfully build ### Operating system(s) on local side and remote side Ubuntu (Arm) , Amazon Linux (x86) , MacOS (M2) ### RustDesk Version(s) on local side and remote side Master Branch ### Screenshots <img width="1521" alt="image" src="https://user-images.githubusercontent.com/9701902/235358446-d92484b8-3375-437c-a854-9e24ced2d519.png"> ### Additional Context _No response_
deekerman 2026-02-21 00:03:11 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (May 1, 2023):

#763

@rustdesk commented on GitHub (May 1, 2023): #763
Author
Owner

@ksingh7 commented on GitHub (May 1, 2023):

@rustdesk this is not specific to win7/8 , build fails across the board of any OS. This PR fixes https://github.com/rustdesk/rustdesk/pull/4249

Thanks , love to contribute more to your project

@ksingh7 commented on GitHub (May 1, 2023): @rustdesk this is not specific to win7/8 , build fails across the board of any OS. This PR fixes https://github.com/rustdesk/rustdesk/pull/4249 Thanks , love to contribute more to your project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#1732
No description provided.