You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: Solution found. I was using a malformed docker build command. This issue may be closed.
Description of the issue
The Docker build process for the builder stage fails with a FileNotFoundError for yarn during the bench init step. This occurs because yarn is not available in the environment during the build process, despite being installed via nvm. The issue arises because the nvm environment isn’t sourced before bench init, so yarn is not added to the PATH.
This issue was encountered while building a custom Docker image for Frappe version 15 using the frappe_docker repository. The error prevents the successful completion of the Docker image build.
Steps to reproduce the issue
1. Use a Dockerfile based on the official frappe_docker repository with Node.js and yarn installed via nvm.
2. Attempt to build the image using the bench init command in the builder stage.
3. The build fails during the yarn install step with a FileNotFoundError because yarn is not in the environment.
Observed result
The build fails with the following error message:
Stacktrace / full error message if available
FileNotFoundError: [Errno 2] No such file or directory: 'yarn'
Expected result
The build should complete successfully, with yarn being available during the bench init process.
The text was updated successfully, but these errors were encountered:
SOLUTION
EDIT: Solution found. I was using a malformed docker build command. This issue may be closed.
Description of the issue
The Docker build process for the builder stage fails with a FileNotFoundError for yarn during the bench init step. This occurs because yarn is not available in the environment during the build process, despite being installed via nvm. The issue arises because the nvm environment isn’t sourced before bench init, so yarn is not added to the PATH.
Context information (for bug reports)
This issue was encountered while building a custom Docker image for Frappe version 15 using the frappe_docker repository. The error prevents the successful completion of the Docker image build.
Steps to reproduce the issue
Observed result
The build fails with the following error message:
Stacktrace / full error message if available
Expected result
The build should complete successfully, with yarn being available during the bench init process.
The text was updated successfully, but these errors were encountered: