Skip to content

Commit 201717b

Browse files
authored
copy only relevant files for running
1 parent 0d04032 commit 201717b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

k8s/docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ RUN ./mvnw clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,
3939
# Release Stage
4040
FROM eclipse-temurin:21-jdk AS release
4141

42-
# Copy only the generated jar file from the build stage
43-
COPY --from=build /code/target /app
42+
# Copy relevant files from the build stage
43+
COPY --from=build /code/target/steve.jar /app/steve.jar
44+
COPY --from=build /code/target/libs /app/libs
4445

4546
# Expose any necessary ports (example: 8080)
4647
EXPOSE 8080

0 commit comments

Comments
 (0)