I don't get this
Aren't we supposed to apt-get in the prepareCommands?
because I'm getting this
2025-08-07T06:05:07.551Z
2025-08-07T06:05:07.552Z ββββ π apt-get install -y build-essential ββββ
2025-08-07T06:05:07.552Z
2025-08-07T06:05:07.578Z E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
2025-08-07T06:05:07.578Z E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
2025-08-07T06:05:07.579Z
2025-08-07T06:05:07.580Z ββββ β apt-get install -y build-essential ββββ
2025-08-07T06:05:07.580Z
2025-08-07T06:05:07.580Z [BUILD ERROR] failed running command => [commandExec] build command failed: map[command:[apt-get install -y build-essential] message:[exit status 100]]
7 Replies
Hi @minsomai try:
sudo apt-get install -y build-essential
If you have a problem debugging a build/prepare process, it's a good idea to use
Pipeline debug options
and try it directly in the container. Then, make the changes in zerops.yaml. This will save you time.
https://docs.zerops.io/features/debug-mode#debug-control
thank you
now I'm getting this
https://zerops.io/article/the-perfect-cloud-platform-for-development-and-production-of-rag-ai-apps#deploying-admin-dashboard-app-python-worker-and-api-service
Can you try it like this, with
uv
and installing requirements on the runtime instead of the build container
Python is "special", it installs deps differently from any normal language.. you don't really have vendor/node_modules-like folder, it installs deps to the system, which you locally get around by using virtual envs.. but in Zerops container you are fine with installing it on the runtime container system, so the way you do it is by passing requirements.txt to the runtime prepare and installing it with uv (https://github.com/astral-sh/uv)
got this error ^
that looks like whatever deps you are installing require some C/C++ compilers that are not in Alpine by default
you could probably just do
(which means switching to apt-get from apk, but I'd first try if ubuntu doesn't already have everything required installed)
@Jan Saidl can you also check rest of that zerops.yml? would
work?