Building Your Image
To build your Docker image, make sure you are building within the same directory as your Dockerfile.
docker build -t myusername/myimage:tag .
Multi-platform builds, with multiple tags, and auto-push:
docker buildx build --push \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag your-username/packagename:versionNum \
--tag your-username/packagename:latest .
If you just need to re-build the project due to updated dependencies, and don't want Docker to use the pre-cached steps of the build process, use --no-cache in the build command.
No Comments