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

Add ARM64 Support for Docker Image to Enable Raspberry Pi 5 Compatibility #404

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pimushkin
Copy link

Problem:
The application could not run in a Docker container on my Raspberry Pi 5 because the Docker image was only built for the amd64 architecture. Since the Raspberry Pi 5 uses an ARM64 processor, it requires a Docker image built for the linux/arm64 architecture.

Solution:
Updated the GitHub Actions workflow (docker-publish.yml) to include ARM64 support by specifying both linux/amd64 and linux/arm64 platforms in the platforms parameter of the Build and push Docker image step. This ensures that Docker images are built and published for both architectures.

Changes Made:

  • Modified the docker-publish.yml file:
    • Added platforms: linux/amd64,linux/arm64 under the with section of the Build and push Docker image step.

Testing:

  • Built and ran the updated Docker image on my Raspberry Pi 5.
  • Confirmed that the application starts and functions correctly within the Docker container on the ARM64 architecture.

Notes:

  • No changes were required in the Dockerfile since the base image ubuntu supports multiple architectures, including ARM64.
  • This change does not affect existing amd64 builds and maintains backward compatibility.

Conclusion:
By adding ARM64 support, we expand the compatibility of our application to run on devices like the Raspberry Pi 5, making it accessible to a broader range of users.

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 this pull request may close these issues.

1 participant