update dockerfile

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-10 00:19:57 +02:00
parent 801b98c774
commit bf95d0d792

View File

@@ -27,7 +27,7 @@ FROM eclipse-temurin:21-jre-jammy
RUN useradd -m app RUN useradd -m app
USER app USER app
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/app.jar COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/edge.jar
EXPOSE 8080 EXPOSE 8080
CMD ["java", "-jar", "/usr/app/app.jar"] CMD ["java", "-jar", "/usr/app/edge.jar"]