Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (54 loc) · 1.78 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (54 loc) · 1.78 KB
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
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-selkies:debiantrixie
# set version label
ARG BUILD_DATE
ARG VERSION
ARG DOLPHIN_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
ENV TITLE=Dolphin \
PIXELFLUX_WAYLAND=true
RUN \
echo "**** add icon ****" && \
curl -o \
/usr/share/selkies/www/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/dolphin-logo.png && \
echo "**** install dolphin ****" && \
mkdir /tmp/dolphin && \
for DOLPHIN_TAG in ${DOLPHIN_VERSION} $(curl -sX GET "https://api.github.com/repos/dolphin-emu/dolphin/tags?per_page=50" \
| jq -er '[.[].name | select(test("^[0-9]{4}[a-z]?$"))] | sort | reverse | .[]'); do \
if curl -sfIL -o /dev/null "https://dl.dolphin-emu.org/releases/${DOLPHIN_TAG}/dolphin-${DOLPHIN_TAG}-x64.AppImage"; then \
DOLPHIN_RELEASE="${DOLPHIN_TAG}"; \
break; \
fi; \
done && \
curl -fo \
/tmp/dolphin/dolphin.app -L \
"https://dl.dolphin-emu.org/releases/${DOLPHIN_RELEASE}/dolphin-${DOLPHIN_RELEASE}-x64.AppImage" && \
cd /tmp/dolphin && \
chmod +x dolphin.app && \
./dolphin.app --appimage-extract && \
mv \
squashfs-root \
/opt/dolphin && \
rm -f \
/opt/dolphin/usr/lib/libudev.so* && \
find /opt/dolphin -type d -exec chmod go+rx {} + && \
ln -s \
/opt/dolphin/usr/bin/dolphin-emu \
/usr/games/dolphin-emu && \
echo "**** cleanup ****" && \
printf \
"Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" \
> /build_version && \
apt-get autoclean && \
rm -rf \
/config/.cache \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config
EXPOSE 3001