-
-
Notifications
You must be signed in to change notification settings - Fork 267
/
Dockerfile
42 lines (37 loc) · 1.8 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
FROM eclipse-temurin:17.0.8_7-jdk-jammy
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qy --no-install-recommends \
wget \
libxi6 \
libxrender1 \
libxtst6 \
openjfx \
python3-pip \
python3-setuptools \
unzip \
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
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" ]