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

A single development stage ended up not being needed.

NOTE: `dfi` will still only pull the package artifact from the final image.
This commit is contained in:
2025-12-01 09:40:31 -08:00
parent 8816d5fd17
commit 70be50b0d4

View File

@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
FROM archlinux:base-devel
FROM archlinux:base-devel AS base-devel
RUN pacman -Syu \
git \
@@ -78,6 +78,22 @@ RUN sed -i -e '/^ qt6-webengine$/d' PKGBUILD
# Do not build root debug package
RUN sed -i "s/options=(\!lto)$/options=('\!debug' '\!lto')/" PKGBUILD
RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -sci --noconfirm
# Execute build
RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -s --noconfirm
#
# Production stage
#
FROM archlinux:base
COPY --from=base-devel /home/builder/root/root-*.pkg.tar.zst /root/
RUN pacman -Syu \
gcc \
--noconfirm --disable-download-timeout
WORKDIR /root
RUN pacman -U root-*.pkg.tar.zst --noconfirm
# vim: sw=2 sts=2 si ai et