From 17bdede1140635ddd63addf8331eb996a60bc9ea Mon Sep 17 00:00:00 2001 From: mike8699 Date: Sat, 28 Dec 2024 15:06:31 -0500 Subject: [PATCH] Rearrange dockerfile to speed up build --- base/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/Dockerfile b/base/Dockerfile index a1cfd0cf..b3d197af 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -16,9 +16,6 @@ RUN cd Flips && ./make-linux.sh # Build base patch FROM python:3.12 AS build WORKDIR /app -# Copy compiled armips, and flips binaries from previous stages -COPY --from=compile_armips /armips/armips /app -COPY --from=compile_flips /Flips/flips /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ @@ -35,6 +32,9 @@ ADD code/* /app/code/ ADD extract_rom.py /app ADD rebuild_rom.py /app ADD Makefile /app +# Copy compiled armips, and flips binaries from previous stages +COPY --from=compile_armips /armips/armips /app +COPY --from=compile_flips /Flips/flips /app # Create base patch ARG PH_ROM_PATH ARG VERSION_STRING