Skip to content

Commit

Permalink
Dockerfile uses openjdk:17. (#215)
Browse files Browse the repository at this point in the history
z-sztrom authored Aug 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3d7780a commit 5dd9650
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions service/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
FROM fabric8/java-centos-openjdk8-jre:1.6.4
MAINTAINER Eiffel-Community
FROM openjdk:17
MAINTAINER Eiffel-Community

# Expose port 8080. The port can be accessed using option -p or -P of
# docker's command 'run'.
EXPOSE 8080

ARG URL

# Explicitly select the file to pass to "java -jar" so that additional
# jar dependencies can be added to ${JAVA_APP_DIR} without creating
# ambiguity.
ENV JAVA_APP_JAR ${JAVA_APP_DIR}/generate.war
ENV JAVA_APP_JAR="${JAVA_APP_DIR}/generate.war"

# Disable Jolokia and jmx_exporter.
ENV AB_OFF true

RUN echo Building RemRem-Generate image based on artifact url: ${URL}
ADD --chown=jboss ${URL} ${JAVA_APP_JAR}
RUN echo "Building RemRem-Generate image based on artifact url: ${URL}"
ADD ${URL} ${JAVA_APP_JAR}

# Start the service
ENTRYPOINT /usr/java/openjdk-17/bin/java -jar "${JAVA_APP_JAR}"

0 comments on commit 5dd9650

Please sign in to comment.