forked from janmotl/linkifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 909 Bytes
/
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
FROM openjdk:8-jdk
ENV JAVA_FX_VERSION 11.0.2
ENV JAVA_FX_SDK /opt/javafx-sdk
RUN apt-get update && apt-get install -y wget
# install java fx
RUN wget https://download2.gluonhq.com/openjfx/11.0.2/openjfx-11.0.2_linux-x64_bin-sdk.zip
# install linkifier cli release
RUN wget https://github.com/janmotl/linkifier/files/8103473/linkifier.zip
RUN unzip linkifier.zip
RUN rm linkifier.zip
# install latest postgres sql jdbc connection
# the one the current release uses doesn't work with latest postgres authentication method (scram)
RUN wget https://jdbc.postgresql.org/download/postgresql-42.7.4.jar
RUN unzip openjfx-11.0.2_linux-x64_bin-sdk.zip
RUN rm openjfx-11.0.2_linux-x64_bin-sdk.zip
# rename the jar to the library name the linkifier jar is expecting
RUN mv /postgresql-42.7.4.jar /linkifier/lib/postgresql-9.4.1212.jar
WORKDIR /linkifier
CMD ["java", "-cp", "./linkifier-3.2.9.jar", "main.CLI"]