🖥️ Complete Official Python Docker Image support

📚 Updated README.md
This commit is contained in:
timothymiller 2020-12-16 18:55:06 -05:00
parent 1235464e18
commit db5edef4f0
3 changed files with 31 additions and 5 deletions

View File

@ -106,16 +106,40 @@ docker-compose up -d
Create a config.json file with your production credentials. Create a config.json file with your production credentials.
Give build-docker-image.sh permission to execute. ### 💖 Please Note
The optional `docker-build-all.sh` script requires Docker experimental support to be enabled.
Docker Hub has experimental support for multi-architecture builds. Their official blog post specifies easy instructions for building with [Mac and Windows versions of Docker Desktop](https://docs.docker.com/docker-for-mac/multi-arch/).
1. Choose build platform
- Multi-architecture (experimental) `docker-build-all.sh`
- Linux/amd64 by default `docker-build.sh`
Give your bash script permission to execute.
```bash ```bash
sudo chmod +x ./build-docker-image.sh sudo chmod +x ./docker-build.sh
``` ```
At project root, run the build-docker-image.sh script. ```bash
sudo chmod +x ./docker-build-all.sh
```
At project root, run the `docker-build.sh` script.
Recommended for local development
```bash ```bash
./build-docker-image.sh ./docker-build.sh
```
Recommended for production
```bash
./docker-build-all.sh
``` ```
### Run the locally compiled version ### Run the locally compiled version

2
docker-build-all.sh Executable file
View File

@ -0,0 +1,2 @@
docker buildx build --platform linux/ppc64le,linux/s390x,linux/386,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64 --tag timothyjmiller/cloudflare-ddns:latest .
# TODO: Support linux/riscv64

View File

@ -1 +1 @@
docker buildx build --platform linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64 --tag timothyjmiller/cloudflare-ddns:latest . docker build --platform linux/amd64 --tag timothyjmiller/cloudflare-ddns:latest .