Skip to content

Commit 8added6

Browse files
committed
add ubuntu 24.04 wine staging image
1 parent 43bc206 commit 8added6

File tree

3 files changed

+126
-6
lines changed

3 files changed

+126
-6
lines changed

.github/workflows/emu-wine.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
- devel
2626
- stable
2727
- staging
28-
28+
- ubuntustaging
29+
2930
steps:
3031
- uses: actions/checkout@v4
31-
32+
3233
- name: Set up Docker Buildx
3334
uses: docker/setup-buildx-action@v3
3435
with:
@@ -39,7 +40,7 @@ jobs:
3940
registry: ghcr.io
4041
username: ${{ github.repository_owner }}
4142
password: ${{ secrets.GITHUB_TOKEN }}
42-
43+
4344
- uses: docker/build-push-action@v6
4445
with:
4546
context: ./wine

wine/staging/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM debian:bookworm-slim
1+
FROM ubuntu:24.04
22

33
LABEL author="Torsten Widmann" maintainer="info@goover.de"
44
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images"
55
LABEL org.opencontainers.image.licenses=AGPL
66

77
## install required packages
88
ARG DEBIAN_FRONTEND=noninteractive
9-
COPY sources.list /etc/apt/sources.list
109
RUN dpkg --add-architecture i386
1110
RUN apt update
1211
RUN apt -y upgrade
@@ -74,7 +73,7 @@ RUN rm -rf /var/lib/apt/lists/*
7473
# Install wine and with recommends
7574
RUN mkdir -pm755 /etc/apt/keyrings
7675
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
77-
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
76+
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
7877
RUN apt update
7978
RUN apt install --install-recommends winehq-staging winbind cabextract -y
8079

wine/ubuntustaging/Dockerfile

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
FROM debian:bookworm-slim
2+
3+
LABEL author="Torsten Widmann" maintainer="info@goover.de"
4+
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images"
5+
LABEL org.opencontainers.image.licenses=AGPL
6+
7+
## install required packages
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
RUN dpkg --add-architecture i386
10+
RUN apt update
11+
RUN apt -y upgrade
12+
RUN apt install -y --no-install-recommends \
13+
apt-transport-https \
14+
binutils \
15+
ca-certificates \
16+
cabextract \
17+
curl \
18+
ffmpeg \
19+
g++ \
20+
gcc \
21+
gdb \
22+
git \
23+
gnupg2 \
24+
gnutls-bin \
25+
icu-devtools \
26+
iproute2 \
27+
locales \
28+
net-tools \
29+
netcat-openbsd \
30+
numactl \
31+
procps \
32+
python3 \
33+
rapidjson-dev \
34+
software-properties-common \
35+
sqlite3 \
36+
tar \
37+
telnet \
38+
tini \
39+
tzdata \
40+
unzip \
41+
wget \
42+
winbind \
43+
xauth \
44+
xvfb \
45+
xz-utils \
46+
zip \
47+
libatomic1 \
48+
libc++-dev \
49+
libc6 \
50+
libduktape207 \
51+
libevent-dev \
52+
libfluidsynth3 \
53+
libfontconfig \
54+
libgcc1 \
55+
libicu72 \
56+
liblua5.4-0 \
57+
liblzo2-2 \
58+
libmariadbclient-dev-compat \
59+
libncurses6:i386 \
60+
libntlm0 \
61+
libprotobuf32 \
62+
libsdl1.2debian \
63+
libsdl2-2.0-0 \
64+
libsdl2-2.0-0:i386 \
65+
libsqlite3-dev \
66+
libstdc++6 \
67+
libunwind8 \
68+
libz-dev \
69+
libzip4
70+
71+
RUN rm -rf /var/lib/apt/lists/*
72+
73+
# Install wine and with recommends
74+
RUN mkdir -pm755 /etc/apt/keyrings
75+
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
76+
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
77+
RUN apt update
78+
RUN apt install --install-recommends winehq-staging winbind cabextract -y
79+
80+
# Set up Winetricks
81+
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
82+
RUN chmod +x /usr/sbin/winetricks
83+
84+
## install rcon
85+
RUN cd /tmp/ \
86+
&& curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \
87+
&& tar xvf rcon.tar.gz \
88+
&& mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/
89+
90+
# Setup ENVs
91+
ENV HOME=/home/container
92+
ENV WINEPREFIX=/home/container/.wine
93+
ENV WINEDLLOVERRIDES="mscoree,mshtml="
94+
ENV DISPLAY=:0
95+
ENV DISPLAY_WIDTH=1024
96+
ENV DISPLAY_HEIGHT=768
97+
ENV DISPLAY_DEPTH=16
98+
99+
# Set the locale
100+
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
101+
locale-gen
102+
ENV LANG en_US.UTF-8
103+
ENV LANGUAGE en_US:en
104+
ENV LC_ALL en_US.UTF-8
105+
106+
RUN bash -c 'echo "vm.max_map_count = 16777216" > /etc/sysctl.d/20-max_map_count.conf'
107+
108+
## Setup user and working directory
109+
RUN useradd -m -d /home/container -s /bin/bash container
110+
USER container
111+
ENV USER=container HOME=/home/container
112+
WORKDIR /home/container
113+
114+
# Sets the default stop signal as wings can (currently) only send a kill or generic stop
115+
STOPSIGNAL SIGINT
116+
117+
COPY --chown=container:container ../entrypoint.sh /entrypoint.sh
118+
RUN chmod +x /entrypoint.sh
119+
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
120+
CMD ["/entrypoint.sh"]

0 commit comments

Comments
 (0)