File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 3
3
#
4
4
# Before building the container image run:
5
5
#
6
- # ./gradlew build
6
+ # ./mvnw package
7
7
#
8
8
# Then, build the image with:
9
9
#
21
21
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-jvm
22
22
#
23
23
###
24
- FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
24
+ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
25
25
26
26
ARG JAVA_PACKAGE=java-11-openjdk-headless
27
27
ARG RUN_JAVA_VERSION=1.3.8
@@ -43,12 +43,13 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
43
43
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
44
44
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
45
45
# We make four distinct layers so if there are application changes the library layers can be re-used
46
- COPY --chown=1001 build /quarkus-app/lib/ /deployments/lib/
47
- COPY --chown=1001 build /quarkus-app/*.jar /deployments/
48
- COPY --chown=1001 build /quarkus-app/app/ /deployments/app/
49
- COPY --chown=1001 build /quarkus-app/quarkus/ /deployments/quarkus/
46
+ COPY --chown=1001 target /quarkus-app/lib/ /deployments/lib/
47
+ COPY --chown=1001 target /quarkus-app/*.jar /deployments/
48
+ COPY --chown=1001 target /quarkus-app/app/ /deployments/app/
49
+ COPY --chown=1001 target /quarkus-app/quarkus/ /deployments/quarkus/
50
50
51
51
EXPOSE 8080
52
52
USER 1001
53
53
54
54
ENTRYPOINT [ "/deployments/run-java.sh" ]
55
+
Original file line number Diff line number Diff line change 3
3
#
4
4
# Before building the container image run:
5
5
#
6
- # ./gradlew build -Dquarkus.package.type=legacy-jar
6
+ # ./mvnw package -Dquarkus.package.type=legacy-jar
7
7
#
8
8
# Then, build the image with:
9
9
#
21
21
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-legacy-jar
22
22
#
23
23
###
24
- FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
24
+ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
25
25
26
26
ARG JAVA_PACKAGE=java-11-openjdk-headless
27
27
ARG RUN_JAVA_VERSION=1.3.8
@@ -42,8 +42,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
42
42
43
43
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
44
44
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
45
- COPY build /lib/* /deployments/lib/
46
- COPY build /*-runner.jar /deployments/app.jar
45
+ COPY target /lib/* /deployments/lib/
46
+ COPY target /*-runner.jar /deployments/app.jar
47
47
48
48
EXPOSE 8080
49
49
USER 1001
Original file line number Diff line number Diff line change 3
3
#
4
4
# Before building the container image run:
5
5
#
6
- # ./gradlew build -Dquarkus.package.type=native
6
+ # ./mvnw package -Pnative
7
7
#
8
8
# Then, build the image with:
9
9
#
14
14
# docker run -i --rm -p 8080:8080 quarkus/app
15
15
#
16
16
###
17
- FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
17
+ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
18
18
WORKDIR /work/
19
19
RUN chown 1001 /work \
20
20
&& chmod "g+rwX" /work \
21
21
&& chown 1001:root /work
22
- COPY --chown=1001:root build /*-runner /work/application
22
+ COPY --chown=1001:root target /*-runner /work/application
23
23
24
24
EXPOSE 8080
25
25
USER 1001
Original file line number Diff line number Diff line change 3
3
#
4
4
# Before building the container image run:
5
5
#
6
- # ./gradlew build -Dquarkus.package.type=native
6
+ # ./mvnw package -Pnative
7
7
#
8
8
# Then, build the image with:
9
9
#
15
15
#
16
16
###
17
17
FROM quay.io/quarkus/quarkus-distroless-image:1.0
18
- COPY build /*-runner /application
18
+ COPY target /*-runner /application
19
19
20
20
EXPOSE 8080
21
21
USER nonroot
You can’t perform that action at this time.
0 commit comments