Skip to content

Commit

Permalink
Merge pull request #476 from phst-randomizer/optimize-docker-build
Browse files Browse the repository at this point in the history
Rearrange dockerfile to speed up build
  • Loading branch information
mike8699 authored Dec 28, 2024
2 parents f5f971c + 17bdede commit 528778d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 528778d

Please sign in to comment.