Skip to content

Commit

Permalink
Fix M2K Kfunc high CVE
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Sep 23, 2024
1 parent b0868ab commit ed16860
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 152 deletions.
12 changes: 6 additions & 6 deletions move2kube/m2k-func/src/main/docker/Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,22 @@
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi8/openjdk-17:1.20-2.1724181067 as builder
FROM registry.access.redhat.com/ubi9/openjdk-17:1.20-2.1725851028 as builder

COPY src src
COPY pom.xml .
RUN mvn package

FROM registry.access.redhat.com/ubi8/openjdk-17:1.20-2.1724181067
FROM registry.access.redhat.com/ubi9/openjdk-17:1.20-2.1725851028

ENV LANGUAGE='en_US:en'
COPY LICENSE /licenses/

# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --from=builder --chown=185 /home/jboss/target/quarkus-app/lib/ /deployments/lib/
COPY --from=builder --chown=185 /home/jboss/target/quarkus-app/*.jar /deployments/
COPY --from=builder --chown=185 /home/jboss/target/quarkus-app/app/ /deployments/app/
COPY --from=builder --chown=185 /home/jboss/target/quarkus-app/quarkus/ /deployments/quarkus/
COPY --from=builder --chown=185 /home/default/target/quarkus-app/lib/ /deployments/lib/
COPY --from=builder --chown=185 /home/default/target/quarkus-app/*.jar /deployments/
COPY --from=builder --chown=185 /home/default/target/quarkus-app/app/ /deployments/app/
COPY --from=builder --chown=185 /home/default/target/quarkus-app/quarkus/ /deployments/quarkus/

EXPOSE 8080
USER 185
Expand Down
89 changes: 0 additions & 89 deletions move2kube/m2k-func/src/main/docker/Dockerfile.legacy-jar

This file was deleted.

27 changes: 0 additions & 27 deletions move2kube/m2k-func/src/main/docker/Dockerfile.native

This file was deleted.

30 changes: 0 additions & 30 deletions move2kube/m2k-func/src/main/docker/Dockerfile.native-micro

This file was deleted.

0 comments on commit ed16860

Please sign in to comment.