From f520bb414900d45e248a363e6dd878b506083206 Mon Sep 17 00:00:00 2001 From: Udaydeep Date: Thu, 23 May 2024 23:50:43 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index bfab187..7622d12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,14 +9,31 @@ LABEL maintainer="gmartin" ENV TITLE=Metatrader5 ENV WINEPREFIX="/config/.wine" -# Install wine and dependencies -RUN apt-get update && apt-get upgrade -y && \ - apt-get install -y python3-pip wget && \ - wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11/Release.key | apt-key add - && \ - echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./" | tee /etc/apt/sources.list.d/wine-obs.list && \ - dpkg --add-architecture i386 && apt-get update && \ - apt-get install --install-recommends winehq-stable -y && \ - apt-get clean && rm -rf /var/lib/apt/lists/* +# Update package lists and upgrade packages +RUN apt-get update && apt-get upgrade -y + +# Install required packages +RUN apt-get install -y \ + python3-pip \ + wget \ + && pip3 install --upgrade pip + +# Add WineHQ repository key and APT source +RUN wget -q https://dl.winehq.org/wine-builds/winehq.key \ + && apt-key add winehq.key \ + && add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' \ + && rm winehq.key + +# Add i386 architecture and update package lists +RUN dpkg --add-architecture i386 \ + && apt-get update + +# Install WineHQ stable package and dependencies +RUN apt-get install --install-recommends -y \ + winehq-stable \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY /Metatrader /Metatrader RUN chmod +x /Metatrader/start.sh