update dockerfile

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-10 00:42:58 +02:00
parent 4b9aca4cd7
commit d6598742e9

View File

@@ -26,8 +26,10 @@ RUN mvn clean package -DskipTests -Pproduction --batch-mode
# Running stage: the part that is used for running the application # Running stage: the part that is used for running the application
FROM eclipse-temurin:21-jre-jammy FROM eclipse-temurin:21-jre-jammy
COPY --from=build /usr/src/app/target/*.jar /usr/app/app.jar COPY --from=build /usr/src/app/target/*.jar /usr/app/website.jar
RUN useradd -m vaadin RUN useradd -m vaadin
USER vaadin USER vaadin
EXPOSE 8080 EXPOSE 8080
CMD java -jar /usr/app/app.jar CMD ["java", "-jar", "/usr/app/website.jar"]