-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
26 lines (17 loc) · 720 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
26 lines (17 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM eclipse-temurin:21.0.3_9-jdk AS Build
WORKDIR /root
COPY ./pom.xml /root
COPY ./.mvn /root/.mvn
COPY ./mvnw /root
RUN chmod +x mvnw
RUN ./mvnw dependency:go-offline
COPY ./src /root/src
RUN ./mvnw clean install -DskipTests
FROM eclipse-temurin:21.0.3_9-jre AS Run
WORKDIR /root
EXPOSE 8080
COPY --from=build /root/target/Learning-Platform-Reactive-API-0.0.1-SNAPSHOT.jar /root/target/Learning-Platform-Reactive-API-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java","-jar","/root/target/Learning-Platform-Reactive-API-0.0.1-SNAPSHOT.jar"]
LABEL maintainer="https://www.linkedin.com/in/yannick-yasuhiro-funes-chavez/"
LABEL version="0.0.1"
LABEL description="This container runs Spring Boot with a custom configuration."