Files
todo/backend/Dockerfile
almazlar 37ae9dbe53
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m29s
feat: Introduce application version display in the frontend footer, showing both frontend and backend versions with integrated build arguments.
2026-02-21 10:34:08 +03:00

16 lines
337 B
Docker

# Build stage
FROM maven:3.9.12-eclipse-temurin-25 AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn clean package -DskipTests
# Run stage
FROM eclipse-temurin:25-jre
WORKDIR /app
ARG APP_VERSION=dev
ENV APP_VERSION=${APP_VERSION}
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]