mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-25 16:22:35 +03:00
add entrypoint to dockerfile and doc
fix resource usage
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,3 +1,9 @@
|
||||
FROM openjdk:17-jdk-slim
|
||||
COPY --chmod=777 build/libs/demo-single-version.jar /application/demo.jar
|
||||
CMD ["java", "-jar", "/application/demo.jar"]
|
||||
FROM eclipse-temurin:20-jdk
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./entrypoint.sh .
|
||||
RUN chmod +x ./entrypoint.sh
|
||||
COPY ./build/libs/*.jar .
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user