|
1 | 1 | # NOTE: This file is generated automatically via template.py. Do not edit manually! |
2 | 2 |
|
3 | 3 |
|
4 | | -FROM alpine:3.18 as base |
| 4 | +FROM alpine:3.18 AS base |
5 | 5 |
|
6 | | -# download zip first to allow for Docker caching |
| 6 | +# Copy of common/decomp.dev with legacy support for frank.py |
7 | 7 |
|
8 | | -WORKDIR /root |
| 8 | +RUN apk add --no-cache curl libarchive-tools |
9 | 9 |
|
10 | | -RUN wget -O compilers_20240706.zip "https://files.decomp.dev/compilers_20240706.zip" |
11 | | -RUN unzip compilers_20240706.zip |
| 10 | +RUN mkdir compilers \ |
| 11 | + && curl -L "https://files.decomp.dev/compilers_20240706.zip" \ |
| 12 | + | bsdtar -xvf- -C /compilers |
12 | 13 |
|
13 | | -RUN mkdir -p /compilers/gc_wii/mwcc_233_163e |
14 | 14 |
|
15 | | -RUN cp -r GC/1.2.5e/* /compilers/gc_wii/mwcc_233_163e |
16 | | - |
17 | | -RUN chmod +x /compilers/gc_wii/mwcc_233_163e/mwcceppc.exe |
18 | | -RUN touch /compilers/gc_wii/mwcc_233_163e/license.dat |
19 | | -RUN if [[ -f /compilers/gc_wii/mwcc_233_163e/lmgr326b.dll ]]; then \ |
20 | | - mv /compilers/gc_wii/mwcc_233_163e/lmgr326b.dll /compilers/gc_wii/mwcc_233_163e/LMGR326B.dll; \ |
21 | | - fi |
22 | | -RUN if [[ -f /compilers/gc_wii/mwcc_233_163e/lmgr8c.dll ]]; then \ |
23 | | - mv /compilers/gc_wii/mwcc_233_163e/lmgr8c.dll /compilers/gc_wii/mwcc_233_163e/LMGR8C.dll; \ |
24 | | - fi |
25 | 15 | ARG FRANK_HASH=d19668657d2a5efa42cdffb801090d05734b9dbd |
26 | | - |
27 | | -RUN wget -O /compilers/gc_wii/mwcc_233_163e/frank.py https://raw.githubusercontent.com/doldecomp/melee/${FRANK_HASH}/tools/frank.py |
28 | | -RUN cp -r GC/1.2.5/mwcceppc.exe /compilers/gc_wii/mwcc_233_163e/mwcceppc.125.exe |
29 | | -RUN chmod +x /compilers/gc_wii/mwcc_233_163e/mwcceppc.125.exe |
30 | | - |
31 | | -RUN chown -R root:root /compilers/gc_wii/mwcc_233_163e/ |
| 16 | +RUN wget -O /compilers/GC/1.2.5e/frank.py https://raw.githubusercontent.com/doldecomp/melee/${FRANK_HASH}/tools/frank.py |
| 17 | +RUN cp -r /compilers/GC/1.2.5/mwcceppc.exe /compilers/GC/1.2.5e/mwcceppc.125.exe |
32 | 18 |
|
33 | 19 |
|
34 | | -FROM scratch as release |
| 20 | +FROM scratch AS release |
35 | 21 |
|
36 | | -COPY --from=base /compilers /compilers |
| 22 | +COPY --from=base /compilers/GC/1.2.5e /compilers/gc_wii/mwcc_233_163e |
0 commit comments