🖥️ Complete Official Python Docker Image support
📚 Updated README.md
This commit is contained in:
parent
1235464e18
commit
db5edef4f0
32
README.md
32
README.md
@ -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
2
docker-build-all.sh
Executable 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
|
||||||
@ -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 .
|
||||||
Reference in New Issue
Block a user