Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM eclipse-temurin:21-jdk AS builder
WORKDIR /app

COPY gradlew .
COPY gradle gradle
COPY build.gradle settings.gradle ./
COPY src src

RUN chmod +x ./gradlew
RUN ./gradlew bootJar --no-daemon

FROM eclipse-temurin:21-jre
WORKDIR /app

COPY --from=builder /app/build/libs/*.jar app.jar

EXPOSE 19000

ENTRYPOINT ["java", "-jar", "/app/app.jar"]
Comment thread
Sehi55 marked this conversation as resolved.
Comment thread
Sehi55 marked this conversation as resolved.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'gateway'
rootProject.name = 'api-gateway'
4 changes: 4 additions & 0 deletions src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eureka:
client:
service-url:
defaultZone: http://eureka-server:8761/eureka/
2 changes: 0 additions & 2 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


eureka:
client:
service-url:
Expand Down
Loading