optimise docker and logging

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-09-30 21:30:20 +02:00
parent 134cac77e5
commit 3e8c699f61
2 changed files with 2 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
# 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
@@ -30,4 +30,4 @@ USER app
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/app.jar
EXPOSE 8080
CMD java -jar /usr/app/app.jar
CMD ["java", "-jar", "/usr/app/app.jar"]