I also have updated the Dockerfile to a multi-stage build to keep the images as small as possible
I have added a docker_image.yml workflow to build and push the amd64/arm6/arm64 images automatically
You need to add 2 secrets in your project settings:
DOCKER_HUB_USERNAME = your Docker Hub username
DOCKER_HUB_ACCESS_TOKEN = your Docker Hub token
In Actions, you can then run the Docker image workflow (the first build takes ~20 minutes but intermediate layers are cached so the subsequent builds are faster)
The GH workflow is running fine on my GitHub project and the images are properly pushed to my Docker repository. I have tested the arm6 image on a RPi 2 and it's running fine.
The primary goal of my changes was to build a Docker image for arm6 (Raspberry pi)
About the changes:
python3-dev
andcargo
dependencies in theDockerFile
as required by https://cryptography.io/en/latest/installation.html#alpineDockerfile
to a multi-stage build to keep the images as small as possibledocker_image.yml
workflow to build and push the amd64/arm6/arm64 images automaticallyDOCKER_HUB_USERNAME
= your Docker Hub usernameDOCKER_HUB_ACCESS_TOKEN
= your Docker Hub tokenDocker image
workflow (the first build takes ~20 minutes but intermediate layers are cached so the subsequent builds are faster)The GH workflow is running fine on my GitHub project and the images are properly pushed to my Docker repository. I have tested the arm6 image on a RPi 2 and it's running fine.
Thanks for your project!