-
-
Notifications
You must be signed in to change notification settings - Fork 266
/
Dockerfile
73 lines (68 loc) · 2.31 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM eclipse-temurin:17.0.8_7-jdk-jammy
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qy --no-install-recommends \
ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libc6 \
libcairo2 \
libcups2 \
libcurl4 \
libdbus-1-3 \
libdrm2 \
libexpat1 \
libgbm1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libu2f-udev \
libvulkan1 \
libx11-6 \
libxcb1 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxkbcommon0 \
libxrandr2 \
libxrender1 \
libxtst6 \
openjfx \
python3-pip \
python3-setuptools \
unzip \
wget \
xdg-utils \
xvfb \
&& if test "$(dpkg --print-architecture)" = "armhf" ; then python3 -m pip config set global.extra-index-url https://www.piwheels.org/simple ; fi \
&& echo '8c6c9dab4f9aae91482d857a4578b56e3cf222cb6930ee599ed4b1c166aba037 ibc.zip' | tee ibc.zip.sha256 \
&& wget -q https://github.com/IbcAlpha/IBC/releases/download/3.18.0-Update.1/IBCLinux-3.18.0.zip -O ibc.zip \
&& sha256sum -c ibc.zip.sha256 \
&& unzip ibc.zip -d /opt/ibc \
&& chmod o+x /opt/ibc/*.sh /opt/ibc/*/*.sh \
&& rm ibc.zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
ADD ./tws/Jts /root/Jts
ADD ./dist /src/dist
ADD entrypoint.bash /src/entrypoint.bash
ADD ./data/jxbrowser-linux64-arm-7.29.jar /root/Jts/1030/jars/
RUN python3 -m pip install dist/thetagang-*.whl \
&& rm -rf /root/.cache \
&& rm -rf dist \
&& echo '--module-path /usr/share/openjfx/lib' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '--add-modules java.base,java.naming,java.management,javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '--add-opens java.desktop/javax.swing=ALL-UNNAMED' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '--add-opens java.desktop/java.awt=ALL-UNNAMED' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '--add-opens java.base/java.util=ALL-UNNAMED' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '--add-opens javafx.graphics/com.sun.javafx.application=ALL-UNNAMED' | tee -a /root/Jts/*/tws.vmoptions \
&& echo '[Logon]' | tee -a /root/Jts/jts.ini \
&& echo 'UseSSL=true' | tee -a /root/Jts/jts.ini
ENTRYPOINT [ "/src/entrypoint.bash" ]