Remove --no-cache flag from Docker build

Docker layer cache is smart enough to rebuild when source changes
Speeds up builds significantly by reusing package installation layers
This commit is contained in:
mani
2026-01-08 02:27:31 +01:00
parent e80a38199a
commit b6ff41f2ed

View File

@@ -47,7 +47,6 @@ ssh -A root@${TRUENAS_HOST} "cd ${BUILD_DIR} && \
# Build Docker image on TrueNAS # Build Docker image on TrueNAS
echo "Building Docker image on TrueNAS..." echo "Building Docker image on TrueNAS..."
ssh -A root@${TRUENAS_HOST} "cd ${BUILD_DIR} && docker build \ ssh -A root@${TRUENAS_HOST} "cd ${BUILD_DIR} && docker build \
--no-cache \
--build-arg DOTNET_VERSION=9.0 \ --build-arg DOTNET_VERSION=9.0 \
--build-arg PACKAGE_ARCH=amd64 \ --build-arg PACKAGE_ARCH=amd64 \
--build-arg DOTNET_ARCH=x64 \ --build-arg DOTNET_ARCH=x64 \