@@ -9,14 +9,31 @@ LABEL maintainer="gmartin"
99ENV TITLE=Metatrader5
1010ENV WINEPREFIX="/config/.wine"
1111
12- # Install wine and dependencies
13- RUN apt-get update && apt-get upgrade -y && \
14- apt-get install -y python3-pip wget && \
15- wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11/Release.key | apt-key add - && \
16- echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./" | tee /etc/apt/sources.list.d/wine-obs.list && \
17- dpkg --add-architecture i386 && apt-get update && \
18- apt-get install --install-recommends winehq-stable -y && \
19- apt-get clean && rm -rf /var/lib/apt/lists/*
12+ # Update package lists and upgrade packages
13+ RUN apt-get update && apt-get upgrade -y
14+
15+ # Install required packages
16+ RUN apt-get install -y \
17+ python3-pip \
18+ wget \
19+ && pip3 install --upgrade pip
20+
21+ # Add WineHQ repository key and APT source
22+ RUN wget -q https://dl.winehq.org/wine-builds/winehq.key \
23+ && apt-key add winehq.key \
24+ && add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' \
25+ && rm winehq.key
26+
27+ # Add i386 architecture and update package lists
28+ RUN dpkg --add-architecture i386 \
29+ && apt-get update
30+
31+ # Install WineHQ stable package and dependencies
32+ RUN apt-get install --install-recommends -y \
33+ winehq-stable \
34+ && apt-get clean \
35+ && rm -rf /var/lib/apt/lists/*
36+
2037
2138COPY /Metatrader /Metatrader
2239RUN chmod +x /Metatrader/start.sh
0 commit comments