ЛР 2: PostgreSQL и Bearer-сессии

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-11-13 18:21:45 +03:00
co-authored by Copilot
parent 65003b6119
commit 004c45fa6a
16 changed files with 1104 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM maven:3.9.9-eclipse-temurin-21 AS build
WORKDIR /src
COPY pom.xml .
COPY src ./src
RUN mvn -q -DskipTests package
FROM eclipse-temurin:21-jre
RUN useradd --system --create-home app
WORKDIR /app
COPY --from=build /src/target/messenger.jar /app/messenger.jar
USER app
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app/messenger.jar"]