Skip to content

Commit fc1cc85

Browse files
committed
switched to the official docker devkitpro/devkitarm
1 parent af22c7e commit fc1cc85

1 file changed

Lines changed: 25 additions & 45 deletions

File tree

Dockerfile

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,44 @@
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"
44
LABEL org.opencontainers.image.licenses="GPL-3.0"
55
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
106

117
WORKDIR /build
128

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
3610
RUN apt-get update && \
3711
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)
4622
RUN ln -s $(which python3) /usr/bin/python
4723

48-
# Download & install makerom
24+
# Install makerom
4925
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 && \
5228
rm makerom-v0.18.4-ubuntu_x86_64.zip
5329

54-
# Download & install bannertool
30+
# Install bannertool
5531
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
5936

37+
# Add your entrypoint script
6038
COPY ./docker-entrypoint.sh ./
6139
RUN chmod +x /build/docker-entrypoint.sh
6240

41+
# Set working directory to source
6342
WORKDIR /build/source
43+
6444
ENTRYPOINT ["/build/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)