I'm trying to execute a command for building VLC using Docker based on some build guidance, but I'm stuck! Here's what I'm doing: I'm running the command `docker run -it -v C:Sourcevlc:/vlc registry.videolan.org/vlc-debian-llvm-uwp:20200706065223`, and then I change the directory to `cd /vlc`. After that, I attempt to run `extras/package/win32/build.sh -a x86_64 -z -r -u -w -D=C:/Source/vlc`, but it gives me a 'file not found' error. This happens because the Docker image doesn't have access to that file path. However, if I open a new terminal and try it there, it works fine. I'm lost – what am I missing here? You can also check the project link [here](https://github.com/UnigramDev/Unigram).
2 Answers
Make sure to follow the [correct build instructions](https://github.com/UnigramDev/Unigram/blob/develop/Documentation/Build-instructions.md#vlc). You need to clone both the Unigram and the VLC repositories first. In the VLC repo, switch to the `3.0.x` branch, then return to the Unigram repo directory to apply any necessary patches. It sounds like you might not be completing those initial steps before running the Docker container.
The issue is with the path you’re using. When you run `-D=C:/Source/vlc`, that path doesn’t exist inside the Docker container. You’re mapping your host path with `-v C:Sourcevlc:/vlc`, so inside the container, you should use `-D=/vlc` instead. Additionally, you can exec into the running container to check existing paths using `docker exec -it `. Just a heads up, Docker can be tricky on Windows, so using a Linux host or a VM might be a better option.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically