Skip to content

Commit

Permalink
Merge pull request #6 from udaydeep1992/main
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
gmag11 authored May 29, 2024
2 parents 3875de8 + f520bb4 commit 7c3339e
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c3339e

Please sign in to comment.