-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·117 lines (99 loc) · 3.59 KB
/
Dockerfile
File metadata and controls
executable file
·117 lines (99 loc) · 3.59 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
# Available build-args:
# - RUFFLE_VERSION
# - PCEM_VERSION
# - LIBTAS_VERSION
# These can be tags, commits, or branches
FROM debian:12 AS ruffle-builder
# Dependencies
RUN apt-get update && apt-get install -y \
git \
pkg-config \
libasound2-dev \
libudev-dev \
default-jre-headless \
g++ \
curl
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Installs
RUN mkdir /root/src
# pin version
RUN cd /root/src && git clone https://github.com/ruffle-rs/ruffle.git
WORKDIR /root/src/ruffle
# ARG RUFFLE_VERSION=nightly-2026-04-12
ARG RUFFLE_VERSION=""
RUN git fetch --tags && git checkout $RUFFLE_VERSION
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo build --release --package=ruffle_desktop
FROM debian:12 AS pcem-builder
# Dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
automake \
pkg-config \
libwxbase3.2 \
libwxgtk3.2 \
wx-common \
libsdl2-dev \
libopenal-dev
# Install
RUN mkdir /root/src
# ARG PCEM_VERSION=v17_13f53a2
ARG PCEM_VERSION=""
RUN cd /root/src && git clone https://github.com/TASVideos/pcem.git
WORKDIR /root/src/pcem
RUN git fetch --tags && git checkout $PCEM_VERSION
RUN cd /root/src/pcem && autoreconf -i
RUN cd /root/src/pcem && ./configure --enable-release-build
RUN cd /root/src/pcem && make
FROM debian:12 AS libtas-builder
RUN dpkg --add-architecture i386
# Dependencies
RUN apt-get update && apt-get -y install \
# build tools
git wget build-essential automake pkg-config \
# main
libx11-dev libx11-xcb-dev qtbase5-dev libsdl2-dev libxcb1-dev libxcb-keysyms1-dev libxcb-xkb-dev libxcb-cursor-dev libxcb-randr0-dev libudev-dev libasound2-dev libavutil-dev libswresample-dev ffmpeg liblua5.4-dev libcap-dev libxcb-xinput-dev \
# HUD
libfreetype6-dev libfontconfig1-dev \
# i386
g++-multilib \
libx11-6:i386 libx11-dev:i386 libx11-xcb1:i386 libx11-xcb-dev:i386 libasound2:i386 libasound2-dev:i386 libavutil57:i386 libswresample4:i386 libfreetype6:i386 libfreetype6-dev:i386 libfontconfig1:i386 libfontconfig1-dev:i386
# Installs
RUN mkdir /root/src
# ARG LIBTAS_VERSION=1410c417d903705448a9d2bd69051959f7085b20
ARG LIBTAS_VERSION=""
RUN cd /root/src && git clone https://github.com/clementgallet/libTAS.git
WORKDIR /root/src/libTAS
RUN git fetch --tags && git checkout $LIBTAS_VERSION
RUN ./build.sh --with-i386
RUN cd ./build && make install
FROM debian:12-slim
RUN apt-get update && apt-get install -y \
# pcem
libopenal1 \
libwxgtk3.2 \
libsdl2-2.0-0 \
# ruffle
libasound2 \
file \
# libTAS
libqt5widgets5 \
libqt5gui5 \
libqt5core5a \
libqt5network5 \
libqt5x11extras5 \
liblua5.4-0 \
fonts-liberation \
# util
xvfb
# Otherwise, libTAS won't start
RUN mkdir /root/.config/
RUN mkdir -p /root/.local/share/
COPY --from=pcem-builder /root/src/pcem/pcem /usr/local/bin/pcem
COPY --from=ruffle-builder /root/src/ruffle/target/release/ruffle_desktop /usr/local/bin/ruffle
COPY --from=libtas-builder /root/src/libTAS/build/AppDir/usr/bin/libTAS /usr/local/bin/libTAS
COPY --from=libtas-builder /root/src/libTAS/build/AppDir/usr/bin/libtas.so /usr/local/bin/libtas.so
COPY --from=libtas-builder /root/src/libTAS/build/AppDir/usr/bin/libtas32.so /usr/local/bin/libtas32.so
# run
CMD bash