fix: Fixes Docker image building always attempting to build

This commit is contained in:
Tera << 8 2025-05-06 21:50:02 -04:00
parent ef132db2f1
commit 06baeea009
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,7 @@ I want to have ultra reliable and secure infrastructure for my personal use. The
This server setup uses Docker, but not Docker Compose. Instead, we use NixOS built in OCI support, and `compose2nix` to help facilitate the setup of OCI containers.
I don't want obscure software patches (even if reliable!) needed for Nix. I want the official distributions, which is why I'm not using Nixpkgs (ie. `services.immich.enable = true;`).
I don't want obscure software patches (even if reliable!) needed because of Nix. I want the official distributions, which is why I'm not using Nixpkgs (ie. `services.immich.enable = true;`).
## Setup

View file

@ -69,7 +69,9 @@
TimeoutSec = 300;
};
script = ''
if [[ "$(docker images -q caddy-custom:2.10.0-builder 2> /dev/null)" == "" ]]; then
docker build -t caddy-custom:2.10.0-builder -f ${./volume/Dockerfile} .
fi
'';
};