File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM fabric8/java-centos-openjdk8-jre:1.6.4
2
- MAINTAINER Eiffel-Community
1
+ FROM openjdk:17
2
+ MAINTAINER Eiffel-Community
3
+
4
+ # Expose port 8080. The port can be accessed using option -p or -P of
5
+ # docker's command 'run'.
3
6
EXPOSE 8080
7
+
4
8
ARG URL
5
9
6
10
# Explicitly select the file to pass to "java -jar" so that additional
7
11
# jar dependencies can be added to ${JAVA_APP_DIR} without creating
8
12
# ambiguity.
9
- ENV JAVA_APP_JAR ${JAVA_APP_DIR}/generate.war
13
+ ENV JAVA_APP_JAR= " ${JAVA_APP_DIR}/generate.war"
10
14
11
15
# Disable Jolokia and jmx_exporter.
12
16
ENV AB_OFF true
13
17
14
- RUN echo Building RemRem-Generate image based on artifact url: ${URL}
15
- ADD --chown=jboss ${URL} ${JAVA_APP_JAR}
18
+ RUN echo "Building RemRem-Generate image based on artifact url: ${URL}"
19
+ ADD ${URL} ${JAVA_APP_JAR}
20
+
21
+ # Start the service
22
+ ENTRYPOINT /usr/java/openjdk-17/bin/java -jar "${JAVA_APP_JAR}"
You can’t perform that action at this time.
0 commit comments