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

Dockerfile won't work: COPY failed: stat /var/lib/docker/tmp/docker-builder254608206/lib: no such file or directory #252

Open
LuigiClemente-Awin opened this issue Nov 4, 2022 · 1 comment · May be fixed by #260

Comments

@LuigiClemente-Awin
Copy link

LuigiClemente-Awin commented Nov 4, 2022

Can we please get detailed documentation on how to actually build a docker image?

haney added a commit to haney/aws-azure-login that referenced this issue Jan 4, 2023
Build required libraries within the Dockerfile instead of copying them from the
parent environment. This avoids issues where the libraries have not been built
prior to generating the container image.

Fixes aws-azure-login#252
@haney haney linked a pull request Jan 4, 2023 that will close this issue
@AlexanderRossa
Copy link

Was also stuck for a bit trying to build this so for anyone else who might come looking:

The issue comes from the fact that lib is not present after you clone repo. You can:

  • build the repo locally (yarn install && yarn build), which will create the necessary files for you locally, after which the current Dockerfile build will work
  • refer to work @haney has done in Build libraries within Dockerfile #260 which incorporates the repo build to the Dockerfile itself using multi-stage builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants