diff --git a/Dockerfile b/Dockerfile
index 4bd0e0f1..377bdab9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,19 @@
-FROM eclipse-temurin:17-jdk-alpine
-
-EXPOSE 8080
+FROM eclipse-temurin:17-jdk-alpine as build
ENV APP_HOME /usr/src/app
+RUN mkdir -p $APP_HOME
+
+WORKDIR $APP_HOME
+
COPY target/*.jar $APP_HOME/app.jar
+FROM gcr.io/distroless/java17-debian12
+
+ENV APP_HOME /usr/src/app
+
WORKDIR $APP_HOME
+COPY --from=build $APP_HOME/app.jar $APP_HOME
+
CMD ["java", "-jar", "app.jar"]
diff --git a/EKS_Terraform/variables.tf b/EKS_Terraform/variables.tf
index dc712258..083be739 100644
--- a/EKS_Terraform/variables.tf
+++ b/EKS_Terraform/variables.tf
@@ -1,5 +1,5 @@
variable "ssh_key_name" {
description = "The name of the SSH key pair to use for instances"
type = string
- default = "DevOps"
+ default = "my_new_rsa"
}
diff --git a/deployment-service.yml b/deployment-service.yml
index 31aec78b..e8bec173 100644
--- a/deployment-service.yml
+++ b/deployment-service.yml
@@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: bloggingapp
- image: adijaiswal/bloggingapp:latest # Updated image to private DockerHub image
+ image: anisharun104/bloggingapp:v1 # Updated image to private DockerHub image
imagePullPolicy: Always
ports:
- containerPort: 8080
diff --git a/pom.xml b/pom.xml
index 3ed8ab2b..3d9f535d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
com.example
twitter-app
- 0.0.3
+ 0.0.4
twitter-app
Demo project for Spring Boot
@@ -102,11 +102,11 @@
maven-releases
- http://13.235.245.200:8081/repository/maven-releases/
+ http://13.234.122.191:8081/repository/maven-releases/
maven-snapshots
- http://13.235.245.200:8081/repository/maven-snapshots/
+ http://13.234.122.191:8081/repository/maven-snapshots/