Skip to content

Commit

Permalink
Shallow clone git dependencies to save space in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mike8699 committed Oct 22, 2023
1 parent e0eec73 commit 95f802c
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
@@ -1,23 +1,23 @@
# Download and compile ARMIPS
FROM python:3.12 AS compile_armips
RUN apt-get update && apt-get install -y cmake
RUN git clone --recurse-submodules https://github.com/Kingcom/armips.git
RUN git clone --depth 1 --recurse-submodules https://github.com/Kingcom/armips.git
WORKDIR /armips
RUN cmake .
RUN make

# Download and compile ndstool
FROM python:3.12 AS compile_ndstool
RUN apt-get update && apt-get install -y build-essential git gcc g++ autotools-dev autoconf
RUN git clone https://github.com/devkitPro/ndstool
RUN git clone --depth 1 https://github.com/devkitPro/ndstool
WORKDIR /ndstool
RUN aclocal && autoconf && automake --add-missing && chmod +x ./configure &&\
./configure --disable-dependency-tracking && make

# Download and compile Floating IPS patcher
FROM python:3.12 as compile_flips
RUN apt-get update && apt-get install -y git g++ build-essential
RUN git clone https://github.com/Alcaro/Flips.git
RUN git clone --depth 1 https://github.com/Alcaro/Flips.git
RUN chmod +x Flips/make.sh
RUN cd Flips && ./make.sh

Expand Down

0 comments on commit 95f802c

Please sign in to comment.