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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user