| 1 | # local image with smart cache |
| 2 | docker build -t agent-zero-base:local --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) . |
| 3 | |
| 4 | # local image without cache |
| 5 | docker build -t agent-zero-base:local --no-cache . |
| 6 | |
| 7 | # dockerhub push: |
| 8 | |
| 9 | docker login |
| 10 | |
| 11 | # with cache |
| 12 | docker buildx build -t agent0ai/agent-zero-base:latest --platform linux/amd64,linux/arm64 --push --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) . |
| 13 | |
| 14 | # without cache |
| 15 | docker buildx build -t agent0ai/agent-zero-base:latest --platform linux/amd64,linux/arm64 --push --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) --no-cache . |
| 16 | |
| 17 | # plain output |
| 18 | --progress=plain |