Problem Statement
- I am trying to compile chromium from source code in a docker container.
- It requires installing some dependencies given in file
install-build-deps.shwhich is just a file that makesinstall-build-deps.pyexcutable. - I tried
RUN /chromium/src/build/install-build-deps.shbut I received:
------
> [7/8] RUN /chromium/src/build/install-build-deps.sh:
0.500 /bin/sh: 1: /chromium/src/build/install-build-deps.sh: not found
- Asked ChatGPT and It said that the only way is to copy the entire
chromiumdirectory but this is not possible as it is too big and myrootandhomeare separate androotdoes not contain enough space. - The only way is just opening the container and running the script maunally. The problem with this is that it is not persistant (I need to call it each time).
- This is the script
install-build-deps.sh: (file is also executable (I can run it If I run the container))
#!/bin/bash -e
# Copyright 2012 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
exec "$(cd $(dirname $0) && pwd)/install-build-deps.py" "$@"