diff --git a/backend/Dockerfile b/backend/Dockerfile index 25752c6..d876d62 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -16,6 +16,10 @@ RUN apt-get update && \ apt-get install -y curl && \ rm -rf /var/lib/apt/lists/* + COPY --from=build /app/target/*.jar app.jar -EXPOSE 8082 +EXPOSE 8080 ENTRYPOINT ["java", "-jar", "app.jar"] + +HEALTHCHECK --interval=30s --timeout=3s \ + CMD curl -f http://localhost:8080/api/actuator/health || exit 1 \ No newline at end of file diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 75a05bd..edbeb5e 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,4 +1,4 @@ -server.port=8082 +server.port=8080 server.servlet.context-path=/api spring.application.name=backend