forked from gmag11/MetaTrader5-Docker-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 1.12 KB
/
Dockerfile
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
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Metatrader Docker:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="gmartin"
ENV TITLE=Metatrader5
ENV WINEPREFIX="/config/.wine"
# 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
COPY /root /
EXPOSE 3000 8001
VOLUME /config