client: Dockerfiles: remote: hledger-suite: use multi-stage

The previous hledger-suite image was treated as a monolithic development
image that was never intended to be pulled from directly, at least
outside of the `dfi` build system.

hledger-suite has now been parsed out into separate build targets for
faster maintenance and development, with the final production image
being a massively slimmer "placeholder" image for the built binaries.

`hledger-suite:latest` can now be pulled from directly without pulling
the entire build system and related artifacts.
This commit is contained in:
2025-12-10 10:36:21 -08:00
parent a88dbf5704
commit f669c01f97
2 changed files with 40 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
# Copyright (C) 2024-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -19,6 +19,29 @@ services:
hledger-suite:
image: evergreencrypto/hledger-suite:latest
container_name: evergreencrypto_hledger-suite
build: .
build:
context: .
target: hledger-suite
hledger:
image: evergreencrypto/hledger:build
container_name: evergreencrypto_hledger
build:
context: .
target: hledger
hledger-iadd:
image: evergreencrypto/hledger-iadd:build
container_name: evergreencrypto_hledger-iadd
build:
context: .
target: hledger-iadd
hledger-flow:
image: evergreencrypto/hledger-flow:build
container_name: evergreencrypto_hledger-flow
build:
context: .
target: hledger-flow
# vim: sw=2 sts=2 si ai et