-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 errors when building image #1623
Comments
Hello @kylebuildsstuff! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor! |
works fine on ubuntu24.04
|
I tried to reproduce this issue but was unable to do so. Here's my environment and steps:
Before testing each command, I ran The build completed successfully using: ✅ pnpm run docker:build
✅ docker build --platform linux/amd64 -t example/name:1.0.0 .
✅ docker compose up
|
This related to the lack of memory on the server. For some reason, building the image requires a lot of memory. In my case, in order to build the image successfully, a minimum of 2 GB of RAM and 6 GB of swap space(so that no need to pay for the server with 4 GB RAM) is needed. |
Thanks for the tips. Thought I had plenty of RAM but Docker Desktop didn't so it worked only after upping RAM and swap. |
Describe the bug
Running
pnpm run docker:build
ordocker build
fails and results in this error:To Reproduce
pnpm run docker:build
ordocker build --platform linux/amd64 -t example/name:1.0.0 .
Expected behavior
Docker build should run successfully, creating a docker image
Additional context
docker-compose up
results in similar error related to the docker imageThe text was updated successfully, but these errors were encountered: