Hi;
I have go an error at the time of the build docker image with an custom app
subprocess.CalledProcessError: Command ‘yarn install --check-files --verbose’ returned non-zero exit status 1.
subprocess.CalledProcessError: Command 'yarn install --check-files --verbose' returned non-zero exit status 1.
93.80
93.80 The above exception was the direct cause of the following exception:
93.80
93.80 Traceback (most recent call last):
93.80 File "/usr/local/lib/python3.11/site-packages/bench/commands/make.py", line 75, in init
93.80 init(
93.80 File "/usr/local/lib/python3.11/site-packages/bench/utils/render.py", line 105, in wrapper_fn
93.80 return fn(*args, **kwargs)
93.80 ^^^^^^^^^^^^^^^^^^^
93.80 File "/usr/local/lib/python3.11/site-packages/bench/utils/system.py", line 87, in init
93.80 get_app(
93.80 File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 781, in get_app
93.80 app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
93.80 File "/usr/local/lib/python3.11/site-packages/bench/utils/render.py", line 126, in wrapper_fn
93.80 return fn(*args, **kwargs)
93.80 ^^^^^^^^^^^^^^^^^^^
93.80 File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 253, in install
93.80 install_app(
93.80 File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 943, in install_app
93.80 bench.run(yarn_install, cwd=app_path)
93.80 File "/usr/local/lib/python3.11/site-packages/bench/bench.py", line 49, in run
93.80 return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise, env=env)
93.80 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93.80 File "/usr/local/lib/python3.11/site-packages/bench/utils/__init__.py", line 184, in exec_cmd
93.80 raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
93.80 bench.exceptions.CommandFailedError: yarn install --check-files --verbose
93.80
93.80 ERROR: There was a problem while creating /home/frappe/frappe-bench
93.80 Do you want to rollback these changes? [y/N]: Aborted!
------
Containerfile:118
--------------------
117 | ARG FRAPPE_PATH=https://github.com/frappe/frappe
118 | >>> RUN export APP_INSTALL_ARGS="" && \
119 | >>> if [ -n "${APPS_JSON_BASE64}" ]; then \
120 | >>> export APP_INSTALL_ARGS="--apps_path=/opt/frappe/apps.json"; \
121 | >>> fi && \
122 | >>> bench init ${APP_INSTALL_ARGS}\
123 | >>> --frappe-branch=${FRAPPE_BRANCH} \
124 | >>> --frappe-path=${FRAPPE_PATH} \
125 | >>> --no-procfile \
126 | >>> --no-backups \
127 | >>> --skip-redis-config-generation \
128 | >>> --verbose \
129 | >>> /home/frappe/frappe-bench && \
130 | >>> cd /home/frappe/frappe-bench && \
131 | >>> echo "{}" > sites/common_site_config.json && \
132 | >>> find apps -mindepth 1 -path "*/.git" | xargs rm -fr
133 |
--------------------
ERROR: failed to solve: process "/bin/sh -c export APP_INSTALL_ARGS=\"\" && if [ -n \"${APPS_JSON_BASE64}\" ]; then export APP_INSTALL_ARGS=\"--apps_path=/opt/frappe/apps.json\"; fi && bench init ${APP_INSTALL_ARGS} --frappe-branch=${FRAPPE_BRANCH} --frappe-path=${FRAPPE_PATH} --no-procfile --no-backups --skip-redis-config-generation --verbose /home/frappe/frappe-bench && cd /home/frappe/frappe-bench && echo \"{}\" > sites/common_site_config.json && find apps -mindepth 1 -path \"*/.git\" | xargs rm -fr" did not complete successfully: exit code: 1
please help me to solve