This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:15-jdk-slim as bulid | |
WORKDIR application | |
ARG JAR_FILE=target/*.jar | |
COPY ${JAR_FILE} app.jar | |
RUN java -Djarmode=layertools -jar app.jar extract | |
FROM openjdk:15-jdk-slim | |
WORKDIR application | |
COPY --from=bulid application/dependencies/ ./ | |
COPY --from=bulid application/spring-boot-loader/ ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:15-jdk-slim | |
ARG JAR_FILE=target/*.jar | |
COPY ${JAR_FILE} app.jar | |
ENTRYPOINT ["java","-jar","/app.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
applications: | |
- name: spring-boot-shopping-list-mongodb | |
memory: 768M | |
random-route: true | |
env: | |
SPRING_PROFILES_ACTIVE: cloud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
data: | |
mongodb: | |
uri: mongodb+srv://${mongo.username}:${mongo.password}@${mongo.cluster}/shopping-list?retryWrites=true&w=majority | |
server: | |
port: 3025 |
NewerOlder