fix: Fixes Docker image building always attempting to build
This commit is contained in:
parent
ef132db2f1
commit
06baeea009
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -69,7 +69,9 @@
|
|||
TimeoutSec = 300;
|
||||
};
|
||||
script = ''
|
||||
docker build -t caddy-custom:2.10.0-builder -f ${./volume/Dockerfile} .
|
||||
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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue