Files
todo/backend/Dockerfile
almazlar cf58ccb2c8
Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 2m23s
feat: Add initial frontend dependencies, base CSS, and Gitea Docker build workflow.
2026-02-20 23:12:41 +03:00

14 lines
286 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
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]