Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npm front-end build error when starting container #4765

Merged
merged 2 commits into from Dec 14, 2023

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Dec 14, 2023

Description

Fix npm ERR! code EACCES because of a lack of permissions of the user kobo when calling npm.

Notes

 npm is run as root when building the image, thus its cache is saved at /root/.npm.
This PR moves the cache folder to a location that both root and kobo are able to write to.

⚠️ Image has to be rebuild to see the patch in action.

Dockerfile Outdated Show resolved Hide resolved
@p2edwards p2edwards merged commit cfc663b into beta Dec 14, 2023
4 checks passed
@p2edwards p2edwards deleted the fix-npm-permissions branch December 14, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants