fix dockerfile warnings

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-10 00:32:34 +02:00
parent 7e82fa4b9b
commit 2b7450f180

View File

@@ -1,5 +1,5 @@
# Stage that builds the application, a prerequisite for the running stage # Stage that builds the application, a prerequisite for the running stage
FROM eclipse-temurin:21-jdk-jammy as build FROM eclipse-temurin:21-jdk-jammy AS build
ARG SERVICE_ROOT ARG SERVICE_ROOT
@@ -30,4 +30,4 @@ USER app
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/google.jar COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/google.jar
EXPOSE 8080 EXPOSE 8080
CMD java -jar /usr/app/google.jar CMD ["java", "-jar", "/usr/app/google.jar"]