|
1 | | -FROM debian:12-slim |
2 | | -LABEL version="0.2.4-alpha" |
3 | | -LABEL vendor1="DanteyPL" |
| 1 | +FROM devkitpro/devkitarm |
| 2 | +LABEL version="0.1.0" |
| 3 | +LABEL maintainer="introkun" |
4 | 4 | LABEL org.opencontainers.image.licenses="GPL-3.0" |
5 | 5 | LABEL org.opencontainers.image.source="https://github.com/introkun/netpass-docker-builder" |
6 | | -LABEL org.opencontainers.image.version="0.2.4-alpha-fork1" |
7 | | -LABEL vendor2="introkun" |
8 | | - |
9 | | -ARG DEBIAN_FRONTEND=noninteractive |
10 | 6 |
|
11 | 7 | WORKDIR /build |
12 | 8 |
|
13 | | -# Install apt dependencies |
14 | | -RUN apt-get update && \ |
15 | | - apt-get install -y --no-install-recommends \ |
16 | | - wget unzip ca-certificates gnupg && \ |
17 | | - rm -rf /var/lib/apt/lists/* |
18 | | - |
19 | | -# Install devkitpro pacman |
20 | | -RUN wget https://apt.devkitpro.org/install-devkitpro-pacman && \ |
21 | | - chmod +x ./install-devkitpro-pacman && \ |
22 | | - sed -i -e 's/apt-get install/apt-get install -y/' ./install-devkitpro-pacman && \ |
23 | | - ./install-devkitpro-pacman && \ |
24 | | - ln -s /proc/self/mounts /etc/mtab |
25 | | - |
26 | | -# Install SDK and tools |
27 | | -RUN dkp-pacman --noconfirm -S 3ds-dev 3ds-curl 3ds-libvorbisidec 3ds-opusfile 3ds-pkg-config && \ |
28 | | - dkp-pacman -Scc --noconfirm |
29 | | - |
30 | | -# Set environment |
31 | | -ENV DEVKITPRO=/opt/devkitpro \ |
32 | | - DEVKITARM=/opt/devkitpro/devkitARM \ |
33 | | - PATH="$PATH:/opt/devkitpro/devkitARM/bin" |
34 | | - |
35 | | -# Install dev dependencies |
| 9 | +# Install Python, ffmpeg, and other needed tools |
36 | 10 | RUN apt-get update && \ |
37 | 11 | apt-get install -y --no-install-recommends \ |
38 | | - ffmpeg git python3 python3-pip && \ |
39 | | - apt-get clean && \ |
40 | | - rm -rf /var/lib/apt/lists/* |
41 | | - |
42 | | -# Install Python package |
43 | | -RUN pip install PyYAML --break-system-packages |
44 | | - |
45 | | -# Link python |
| 12 | + python3 \ |
| 13 | + python3-pip \ |
| 14 | + ffmpeg \ |
| 15 | + wget \ |
| 16 | + unzip \ |
| 17 | + ca-certificates \ |
| 18 | + && pip3 install PyYAML --break-system-packages \ |
| 19 | + && rm -rf /var/lib/apt/lists/* |
| 20 | + |
| 21 | +# Link python3 to python (optional) |
46 | 22 | RUN ln -s $(which python3) /usr/bin/python |
47 | 23 |
|
48 | | -# Download & install makerom |
| 24 | +# Install makerom |
49 | 25 | RUN wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.18.4/makerom-v0.18.4-ubuntu_x86_64.zip && \ |
50 | | - unzip makerom-v0.18.4-ubuntu_x86_64.zip -d $DEVKITPRO/tools/bin/ && \ |
51 | | - chmod +x $DEVKITPRO/tools/bin/makerom && \ |
| 26 | + unzip makerom-v0.18.4-ubuntu_x86_64.zip -d /opt/devkitpro/tools/bin/ && \ |
| 27 | + chmod +x /opt/devkitpro/tools/bin/makerom && \ |
52 | 28 | rm makerom-v0.18.4-ubuntu_x86_64.zip |
53 | 29 |
|
54 | | -# Download & install bannertool |
| 30 | +# Install bannertool |
55 | 31 | RUN wget https://github.com/diasurgical/bannertool/releases/download/1.2.0/bannertool.zip && \ |
56 | | - unzip bannertool.zip -d ./ && \ |
57 | | - cp ./linux-x86_64/bannertool $DEVKITPRO/tools/bin/ && \ |
58 | | - rm bannertool.zip |
| 32 | + unzip bannertool.zip && \ |
| 33 | + cp ./linux-x86_64/bannertool /opt/devkitpro/tools/bin/ && \ |
| 34 | + chmod +x /opt/devkitpro/tools/bin/bannertool && \ |
| 35 | + rm -rf bannertool.zip linux-x86_64 |
59 | 36 |
|
| 37 | +# Add your entrypoint script |
60 | 38 | COPY ./docker-entrypoint.sh ./ |
61 | 39 | RUN chmod +x /build/docker-entrypoint.sh |
62 | 40 |
|
| 41 | +# Set working directory to source |
63 | 42 | WORKDIR /build/source |
| 43 | + |
64 | 44 | ENTRYPOINT ["/build/docker-entrypoint.sh"] |
0 commit comments