-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
31 lines (26 loc) · 1.14 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# that's right folks we building decaf
FROM devkitpro/devkitppc:20220821 AS decaf-build
RUN apt-get -y update && apt-get -y install --no-install-recommends \
zlib1g-dev libcurl4-openssl-dev libssl-dev libuv1-dev libc-ares-dev python3 \
cmake make gcc g++ git ca-certificates \
&& rm -rf /var/lib/apt/lists
# this is incredible I love it
# https://stackoverflow.com/a/43136160
# https://stackoverflow.com/a/47812096
WORKDIR /decaf-emu
RUN git init && \
git remote add origin https://github.com/decaf-emu/decaf-emu && \
git fetch --depth 1 origin e4473ca27848843abfa0a8a68a07bdb0f6998898 && \
git checkout FETCH_HEAD && \
git submodule update --init --depth 1
WORKDIR /decaf-emu/build
RUN cmake .. -DDECAF_FFMPEG=OFF -DDECAF_SDL=OFF -DDECAF_VULKAN=OFF -DDECAF_QT=OFF -DDECAF_BUILD_TOOLS=ON && \
make latte-assembler -j$(nproc)
# build ntrview
FROM devkitpro/devkitppc:20220821
RUN apt-get -y update && apt-get -y install --no-install-recommends \
xxd \
&& rm -rf /var/lib/apt/lists
COPY --from=decaf-build /decaf-emu/build/obj/latte-assembler /usr/local/bin
WORKDIR /app
CMD mkdir -p build && cd build && cmake .. && make -j$(nproc)