From 61917ce2a4e180fa37b528c937b515ebbe908af1 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 27 Jun 2020 12:43:40 +0200 Subject: [PATCH] Update the Dockerfile --- Dockerfile | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33c1958..770dc41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,9 @@ -FROM wiiulegacy/core:0.1 - -# Get dependencies -COPY --from=wiiulegacy/dynamic_libs:0.1 /artifacts $DEVKITPRO/portlibs -COPY --from=wiiulegacy/libutils:0.1 /artifacts $DEVKITPRO/portlibs - -# Get latest libgui from git -RUN git clone https://github.com/Maschell/libgui && cd libgui && git checkout v0.1 -WORKDIR libgui - -# install other dependencies -RUN dkp-pacman -Syyu --noconfirm ppc-zlib ppc-libmad ppc-libogg ppc-libgd ppc-freetype ppc-libjpeg-turbo ppc-libpng ppc-libvorbisidec ppc-glm ppc-bzip2 - -RUN make && \ - find $DEVKITPRO/portlibs -maxdepth 10 -type f -delete && \ - rm -rf $DEVKITPRO/portlibs/ppc/include && \ - make install && \ - cp -r ${DEVKITPRO}/portlibs /artifacts +FROM wiiuenv/devkitppc:20200625 +WORKDIR tmp_build +COPY . . +RUN make clean && make -j8 && mkdir -p /artifacts/wut/usr && cp -r lib /artifacts/wut/usr && cp -r include /artifacts/wut/usr WORKDIR /artifacts + +FROM scratch +COPY --from=0 /artifacts /artifacts \ No newline at end of file