-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.docker
37 lines (29 loc) · 936 Bytes
/
build.docker
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
32
33
34
35
36
37
FROM debian:sid-slim
ARG DEVKITPRO=/opt/devkitpro
ENV DEVKITPRO=$DEVKITPRO
# install basic deps
RUN apt update && apt install -y \
make build-essential wget curl git
# install dkp pacman
RUN wget https://apt.devkitpro.org/install-devkitpro-pacman \
&& chmod +x ./install-devkitpro-pacman \
&& sed -i 's/apt-get install/apt-get -y install/g' ./install-devkitpro-pacman \
&& ./install-devkitpro-pacman
# symlink /proc/mounts to /etc/mtab
RUN ln -s /proc/mounts /etc/mtab
# sync dkp pacman
RUN dkp-pacman -Sy
# install packages
RUN dkp-pacman -S --noconfirm gba-dev
# set devkitpro variables
ARG DKP_TOOLS_PATH=$DEVKITPRO/tools/bin
ENV DKP_TOOLS_PATH=$DKP_TOOLS_PATH
# install dependencies
RUN apt-get update && apt-get install -y \
bash \
curl wget xz-utils \
gcc make libc6-dev libpng-dev \
git \
&& rm -rf /var/lib/apt/lists/* && apt autoremove -y && apt clean
# set up main to run bash
CMD ["/bin/bash", "-l"]