Skip to content

Commit

Permalink
Add JSON libraries for Java 17 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeybe2 authored Aug 23, 2023
1 parent 32957ea commit 4b812c2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions epicbox-java/17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
FROM openjdk:17.0.1-slim

ARG GSON_LIB_URL=https://repo1.maven.org/maven2/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
ARG JAVAX_JSON_API_LIB_URL=https://repo1.maven.org/maven2/javax/json/javax.json-api/1.1.4/javax.json-api-1.1.4.jar
ARG JAVAX_JSON_LIB_URL=https://repo1.maven.org/maven2/org/glassfish/javax.json/1.1.4/javax.json-1.1.4.jar
ARG JSON_SIMPLE_LIB_URL=https://repo1.maven.org/maven2/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar

ARG JAVA_LIB_PATH=/usr/local/lib/java

ENV CLASSPATH=.:$JAVA_LIB_PATH/*

RUN mkdir -p $JAVA_LIB_PATH

ADD $GSON_LIB_URL $JAVA_LIB_PATH
ADD $JAVAX_JSON_API_LIB_URL $JAVA_LIB_PATH
ADD $JAVAX_JSON_LIB_URL $JAVA_LIB_PATH
ADD $JSON_SIMPLE_LIB_URL $JAVA_LIB_PATH

RUN chmod og+r $JAVA_LIB_PATH/*

COPY java_lookup_main.sh /usr/local/bin/java_lookup_main.sh
RUN chmod +x /usr/local/bin/java_lookup_main.sh

Expand Down

0 comments on commit 4b812c2

Please sign in to comment.