File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 254254 <build >
255255 <dockerFile >${project.build.outputDirectory} /Dockerfile</dockerFile >
256256 <assembly >
257- <descriptorRef >artifact</descriptorRef >
257+ <mode >dir</mode >
258+ <inline >
259+ <files >
260+ <file >
261+ <source >${project.build.directory} /${project.build.finalName} .jar</source >
262+ <destName >bbl-validator-${project.version} .jar</destName >
263+ </file >
264+ </files >
265+ <fileSets >
266+ <fileSet >
267+ <directory >${project.basedir} /src/main/resources/schemas</directory >
268+ <outputDirectory >schemas</outputDirectory >
269+ <includes >
270+ <include >**/*</include >
271+ </includes >
272+ </fileSet >
273+ </fileSets >
274+ </inline >
258275 </assembly >
259276 </build >
260277 </image >
Original file line number Diff line number Diff line change 22FROM eclipse-temurin:21-jre-alpine
33
44# metadata
5- LABEL org.label-schema.build-date=${maven.build.timestamp} \
6- org.label-schema.description="BBL Validator" \
5+ LABEL org.label-schema.description="BBL Validator" \
76 org.label-schema.name="bbl-validator" \
8- org.label-schema.url="${project.url}" \
9- org.label-schema.vcs-ref=${build-commit-abbrev} \
10- org.label-schema.vcs-url="${project.scm.url}" \
117 org.label-schema.vendor="Evolved Binary"
128
139# Create a non-root user for running the application
@@ -16,12 +12,9 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
1612# Set working directory
1713WORKDIR /app
1814
19- # Copy the JAR file from Maven assembly
20- # The docker-maven-plugin with assembly descriptor 'artifact' places the JAR in maven/
21- COPY maven/*.jar /app/app.jar
22-
23- # Copy schemas directory
24- COPY src/main/resources/schemas ./schemas
15+ # Copy the JAR file and schemas from build
16+ COPY maven/bbl-validator-${project.version}.jar /app/app.jar
17+ COPY maven/schemas /app/schemas
2518
2619# Change ownership to non-root user
2720RUN chown -R appuser:appgroup /app
You can’t perform that action at this time.
0 commit comments