Revert "add base of lab3"

This reverts commit c43be66343.
This commit is contained in:
2026-11-07 16:19:01 +03:00
parent c43be66343
commit ed976854d5
64 changed files with 0 additions and 4194 deletions
-26
View File
@@ -1,26 +0,0 @@
FROM maven:3.9.9-eclipse-temurin-21 AS builder
WORKDIR /build
COPY java/pom.xml .
RUN mvn -B -q dependency:go-offline
COPY java/src ./src
RUN mvn -B -q clean package -DskipTests
FROM eclipse-temurin:21-jre-alpine AS runtime
RUN addgroup -g 1001 -S appgroup \
&& adduser -u 1001 -S appuser -G appgroup
WORKDIR /app
COPY --from=builder /build/target/*.jar app.jar
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- http://localhost:8080/health/live || exit 1
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=75.0", "-jar", "/app/app.jar"]