-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
67 lines (58 loc) · 1.54 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM docker.io/library/archlinux:latest
ENV DEVKITPRO=/opt/devkitpro
ENV DEVKITARM=/opt/devkitpro/devkitARM
ENV DEVKITPPC=/opt/devkitpro/devkitPPC
ENV PATH="${PATH}:${DEVKITARM}/bin/:${DEVKITPPC}/bin/"
ENV WORKDIR="/build"
WORKDIR "${WORKDIR}"
RUN pacman-key --init
# Install devkitpro
# doc source :
# https://devkitpro.org/wiki/devkitPro_pacman
# First import the key which is used to validate the packages
RUN pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com && \
pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
RUN pacman --noconfirm -U https://downloads.devkitpro.org/devkitpro-keyring.pkg.tar.xz
ADD devkit_repo ./devkit_repo
RUN cat ./devkit_repo >> /etc/pacman.conf
# Now resync the database and update installed packages.
# And install requirements
RUN pacman --noconfirm -Syu && \
pacman --noconfirm -S \
git \
pkg-config \
make \
ninja \
cmake \
vim \
protobuf \
python-protobuf \
devkitARM \
switch-pkg-config \
devkitpro-pkgbuild-helpers \
switch-dev \
switch-zlib \
switch-sdl2 \
switch-freetype \
switch-curl \
switch-glfw \
switch-mesa \
switch-glad \
switch-glm \
switch-libconfig \
switch-sdl2_gfx \
switch-sdl2_ttf \
switch-sdl2_image \
switch-sdl2_mixer \
switch-libexpat \
switch-bzip2 \
switch-libopus \
switch-ffmpeg \
switch-mbedtls && \
yes | pacman -Scc
# the `pacman --noconfirm -Scc` command
# does not assume yes on /var/cache/pacman/pkg/
VOLUME ${WORKDIR}
# nxlink server port
EXPOSE 28771
ENTRYPOINT ["/bin/bash"]