This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Switch to wolfi to fix critical vulnerability (#421)
* chore: Switch to wolfi to fix critical vulnerability * nl * fix nl * fix * fix * Fix manual * needs' * make more clear * toolchains * Fix
- Loading branch information
Showing
8 changed files
with
52 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0f1d81605bda6e2388c3c7f731700d8c12e17259d58ffba11f36ddc81d9c0a76 AS builder | ||
RUN apk add openjdk-17 bash coreutils | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk | ||
ENV PATH="$JAVA_HOME/bin:$PATH" | ||
WORKDIR /app | ||
COPY build/libs/local-rest-scorer-boot.jar application.jar | ||
RUN java -Djarmode=layertools -jar application.jar extract | ||
|
||
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0f1d81605bda6e2388c3c7f731700d8c12e17259d58ffba11f36ddc81d9c0a76 | ||
RUN apk add openjdk-17-jre bash coreutils | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk | ||
ENV PATH="$JAVA_HOME/bin:$PATH" | ||
USER nonroot | ||
WORKDIR /app | ||
COPY --from=builder --chown=nonroot:nonroot /app/dependencies/ ./ | ||
COPY --from=builder --chown=nonroot:nonroot /app/spring-boot-loader/ ./ | ||
COPY --from=builder --chown=nonroot:nonroot /app/snapshot-dependencies/ ./ | ||
COPY --from=builder --chown=nonroot:nonroot /app/application/ ./ | ||
VOLUME /mojos | ||
VOLUME /secrets | ||
EXPOSE 8080 | ||
ENV DRIVERLESS_AI_LICENSE_FILE="/secrets/license.sig" | ||
CMD ["java", "-Dmojo.path=/mojos/pipeline.mojo", "--add-opens=java.base/java.lang=ALL-UNNAMED", "--add-opens=java.base/java.util=ALL-UNNAMED", "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED", "org.springframework.boot.loader.launch.JarLauncher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters