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

Created a working Dockerfile to build on Raspberry ARM64 #142

Open
floohh opened this issue Feb 29, 2024 · 2 comments
Open

Created a working Dockerfile to build on Raspberry ARM64 #142

floohh opened this issue Feb 29, 2024 · 2 comments

Comments

@floohh
Copy link

floohh commented Feb 29, 2024

Is your feature request related to a problem? Please describe.
After some experimentation I was able to create a Dockerfile to get it to built on Raspberry with ARM64

Describe the solution you'd like
I've added gcc and std includes to the Dockerfile so aiohttp (modified the requirements to 3.9.3) can be successfully compiled and used.

Describe alternatives you've considered
I've played around with different versions of aiohttp but it did not work, needed to be compiled.

Additional context
I am fairly new to GitHub if there is a better way to communicating this, I am sorry.

Here is the new Dockerfile:
Dockerfile.txt

@dmunozv04
Copy link
Owner

Hi there, we already have images for arm64 (but not for armv7). Does this new dockerfile allow it to build? Also, to reduce size; adding packages with apk; installing deps and removing build apk packages in one step would be ideal

@floohh
Copy link
Author

floohh commented Mar 1, 2024

Yes the Raspberry Pi Zero 2 W is arm7, and this new file allows it to build, but it takes a long time to compile aiohttp (10min on MacBook Pro).

As this happens when pip is installing the requirements, those libraries can only be removed after that step. An updated Dockerfile is attached.

Dockerfile2.txt

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

No branches or pull requests

2 participants