-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
165 lines (154 loc) · 3.88 KB
/
Dockerfile
File metadata and controls
165 lines (154 loc) · 3.88 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-selkies:debiantrixie AS buildstage
ARG EDEN_VERSION
RUN \
echo "**** install build deps ****" && \
apt-get update && \
apt-get install -y \
autoconf \
cmake \
g++ \
gcc \
git \
glslang-tools \
libasound2t64 \
libavcodec-dev \
libavfilter-dev \
libboost-context-dev \
libboost-fiber-dev \
libcpp-httplib-dev \
libcpp-jwt-dev \
libcubeb-dev \
libenet-dev \
libfmt-dev \
libglu1-mesa-dev \
libhidapi-dev \
liblz4-dev \
libopus-dev \
libpulse-dev \
libqt6core5compat6 \
libquazip1-qt6-dev \
libsdl2-dev \
libsimpleini-dev \
libssl-dev \
libswscale-dev \
libtool \
libudev-dev \
libusb-1.0-0-dev \
libva-dev \
libvdpau-dev \
libvulkan-dev \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xkb1 \
libxext-dev \
libxkbcommon-x11-0 \
libzstd-dev \
mesa-common-dev \
nasm \
ninja-build \
nlohmann-json3-dev \
patch \
pkg-config \
qt6-base-private-dev \
qt6-charts-dev \
qt6-multimedia-dev \
qt6-tools-dev \
qt6-webengine-dev \
spirv-headers \
spirv-tools \
zlib1g-dev
RUN \
echo "**** build eden ****" && \
mkdir /root-out && \
if [ -z ${EDEN_VERSION+x} ]; then \
EDEN_VERSION=$(curl -sX GET 'https://git.eden-emu.dev/api/v1/repos/eden-emu/eden/releases/latest' \
| awk '/tag_name/{print $6;exit}' FS='[""]'); \
fi && \
git clone https://git.eden-emu.dev/eden-emu/eden.git && \
cd eden/ && \
git checkout -f ${EDEN_VERSION} && \
cmake -B build -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="-march=x86-64-v3 -O2" \
-DCMAKE_CXX_FLAGS="-march=x86-64-v3 -O2" \
-DUSE_DISCORD_PRESENCE=ON \
-DYUZU_ENABLE_LTO=OFF \
-DYUZU_USE_CPM=OFF \
-DCPM_USE_LOCAL_PACKAGES=ON \
-DYUZU_USE_BUNDLED_FFMPEG=OFF \
-DYUZU_USE_BUNDLED_SDL2=OFF \
-DYUZU_USE_EXTERNAL_SDL2=OFF \
-DYUZU_USE_BUNDLED_QT=OFF \
-DENABLE_QT_TRANSLATION=ON \
-DYUZU_USE_QT_MULTIMEDIA=ON \
-DYUZU_USE_QT_WEB_ENGINE=ON \
-Dhttplib_FORCE_BUNDLED=ON \
-DTITLE_BAR_FORMAT_RUNNING="eden | ${EDEN_VERSION} {}" \
-DTITLE_BAR_FORMAT_IDLE="eden ${EDEN_VERSION} {}" \
-DYUZU_TESTS=OFF \
-DDYNARMIC_TESTS=OFF \
-DBUILD_TESTING=OFF \
-Wno-dev && \
cmake --build build && \
mv \
build/bin/* \
/root-out/
# Runtime Stage
FROM ghcr.io/linuxserver/baseimage-selkies:debiantrixie
# set version label
ARG BUILD_DATE
ARG VERSION
ARG EDEN_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
ENV TITLE=Eden \
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/eden-logo.png && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
libavcodec61 \
libboost-context1.83.0 \
libboost-filesystem1.83.0 \
libcubeb0 \
libenet7 \
libfmt10 \
liblz4-1 \
libopus0 \
libqt6charts6 \
libqt6multimedia6 \
libqt6webenginewidgets6 \
libquazip1-qt6-1t64 \
libsdl2-2.0-0 \
libsimpleini1t64 \
libssl3t64 \
libusb-1.0-0 \
libxcb-cursor0 \
libzstd1 \
qt6-wayland && \
echo "**** cleanup ****" && \
printf \
"Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" \
> /build_version && \
apt-get autoclean && \
rm -rf \
/config/.cache \
/config/.launchpadlib \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# add local files and files from buildstage
COPY --from=buildstage /root-out/* /usr/bin/
COPY root/ /
# ports and volumes
VOLUME /config
EXPOSE 3001