Skip to content
Merged
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
5 changes: 5 additions & 0 deletions data-ingestion-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM amazoncorretto:21 as builder

# try patching system (libxml2) for security fixes
RUN yum update -y libxml2 && yum clean all

#Copy project config
COPY gradle /usr/src/dataingestion/gradle
Expand All @@ -21,6 +23,9 @@ RUN ./gradlew :data-ingestion-service:buildNeeded -x test --no-daemon

FROM amazoncorretto:21

# Patch system again in final image
RUN yum update -y libxml2 && yum clean all

COPY --from=builder /usr/src/dataingestion/data-ingestion-service/build/libs/data-ingestion-service*.jar data-ingestion-service.jar

# Run jar
Expand Down
Loading