Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ RUN make clean install
# Clean up build dependencies
RUN rm -r /home/crawleruser/.m2

# Remove ruby-maven and ruby-maven-libs gems, which are only needed at build time
# for JAR dependency resolution. This also removes the bundled plexus-utils-3.5.1.jar
# (CVE-2025-67030) from the production image.
RUN rm -rf /usr/local/bundle/gems/ruby-maven-* \
/usr/local/bundle/specifications/ruby-maven-* \
/usr/local/bundle/cache/ruby-maven-*

ENTRYPOINT [ "/bin/bash" ]
7 changes: 7 additions & 0 deletions Dockerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ RUN make clean install
# add more directories and files not to be copied to the runtime image from /home/app
RUN rm -rf .git .github .idea .devcontainer .buildkite

# Remove ruby-maven and ruby-maven-libs gems, which are only needed at build time
# for JAR dependency resolution. This also removes the bundled plexus-utils-3.5.1.jar
# (CVE-2025-67030) from the production image.
RUN rm -rf /usr/local/bundle/gems/ruby-maven-* \
/usr/local/bundle/specifications/ruby-maven-* \
/usr/local/bundle/cache/ruby-maven-*

# Create custom JDK using jlink
RUN jlink \
--add-modules java.base,jdk.crypto.ec,java.logging,java.management,java.naming,java.net.http,java.scripting,java.security.jgss,java.security.sasl,java.sql,jdk.unsupported \
Expand Down