client: Dockerfiles: remote: root: update multi-stage

Parses out build stage into separate build target.
This commit is contained in:
2025-12-10 12:15:57 -08:00
parent 70417cc889
commit c7fcebfe0b
2 changed files with 13 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
FROM archlinux:base-devel AS base-devel FROM archlinux:base-devel AS root-build
RUN pacman -Syu \ RUN pacman -Syu \
git \ git \
@@ -85,9 +85,9 @@ RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -s --noc
# Production stage # Production stage
# #
FROM archlinux:base FROM archlinux:base AS root
COPY --from=base-devel /home/builder/root/root-*.pkg.tar.zst /root/ COPY --from=root-build /home/builder/root/root-*.pkg.tar.zst /root/
RUN pacman -Syu \ RUN pacman -Syu \
gcc \ gcc \

View File

@@ -20,6 +20,16 @@ services:
image: evergreencrypto/root:archlinux image: evergreencrypto/root:archlinux
container_name: evergreencrypto_root_archlinux container_name: evergreencrypto_root_archlinux
build: build:
context: .
target: root
dockerfile: Dockerfile.archlinux
archlinux-build:
image: evergreencrypto/root:archlinux-build
container_name: evergreencrypto_root_archlinux-build
build:
context: .
target: root-build
dockerfile: Dockerfile.archlinux dockerfile: Dockerfile.archlinux
# vim: sw=2 sts=2 si ai et # vim: sw=2 sts=2 si ai et