fix: update Dockerfile, application properties, and controller mappings for health check and CORS support
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m38s

This commit is contained in:
almazlar
2026-02-22 14:08:31 +03:00
parent b5dcba1e11
commit 386f5137c6
8 changed files with 37 additions and 20 deletions

View File

@@ -1,15 +1,21 @@
# Build stage
# Build stage ---------------------------------------------------------------
FROM maven:3.9.12-eclipse-temurin-25 AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn clean package
# Run stage
# Run stage ---------------------------------------------------------------
FROM eclipse-temurin:25-jre
WORKDIR /app
ARG APP_VERSION=dev
ENV APP_VERSION=${APP_VERSION}
# Install curl (required for the healthcheck)
RUN apt-get update && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
EXPOSE 8082
ENTRYPOINT ["java", "-jar", "app.jar"]