File tree 3 files changed +48
-0
lines changed
3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ----------------------------------
2
+ # Stage 1
3
+ # ----------------------------------
4
+
5
+ # Import docker image with maven installed
6
+ FROM maven:3.8.3-openjdk-17 as builder
7
+
8
+ # Add maintainer, so that new user will understand who had written this Dockerfile
9
+ MAINTAINER Madhup Pandey<
[email protected] >
10
+
11
+ # Add labels to the image to filter out if we have multiple application running
12
+ LABEL app=bankapp
13
+
14
+ # Set working directory
15
+ WORKDIR /src
16
+
17
+ # Copy source code from local to container
18
+ COPY . /src
19
+
20
+ # Build application and skip test cases
21
+ RUN mvn clean install -DskipTests=true
22
+
23
+ # --------------------------------------
24
+ # Stage 2
25
+ # --------------------------------------
26
+
27
+ # Import small size java image
28
+ FROM openjdk:17-alpine as deployer
29
+
30
+ # Copy build from stage 1 (builder)
31
+ COPY --from=builder /src/target/*.jar /src/target/bankapp.jar
32
+
33
+ # Expose application port
34
+ EXPOSE 8080
35
+
36
+ # Start the application
37
+ ENTRYPOINT ["java" , "-jar" , "/src/target/bankapp.jar" ]
Original file line number Diff line number Diff line change
1
+ ## End-to-End Bank Application Deployment using DevSecOps on AWS EKS
2
+
Original file line number Diff line number Diff line change 75
75
<groupId >org.springframework.boot</groupId >
76
76
<artifactId >spring-boot-maven-plugin</artifactId >
77
77
</plugin >
78
+ <plugin >
79
+ <groupId >org.apache.maven.plugins</groupId >
80
+ <artifactId >maven-compiler-plugin</artifactId >
81
+ <version >3.8.0</version >
82
+ <configuration >
83
+ <source >1.8</source >
84
+ <target >1.8</target >
85
+ </configuration >
86
+ </plugin >
78
87
</plugins >
79
88
</build >
80
89
You can’t perform that action at this time.
0 commit comments