fix migrations

This commit is contained in:
EgorAnti
2026-10-20 14:27:59 +03:00
parent 05fcccb9ed
commit 7565b65997
9 changed files with 43 additions and 9 deletions
+8 -4
View File
@@ -9,7 +9,8 @@ COPY build.gradle settings.gradle ./
COPY src src
RUN chmod +x gradlew && ./gradlew bootJar --no-daemon
RUN --mount=type=cache,target=/root/.gradle \
chmod +x gradlew && ./gradlew bootJar --no-daemon
# Stage 2: Runtime
@@ -19,13 +20,16 @@ WORKDIR /app
COPY --from=build /app/build/libs/*.jar app.jar
RUN useradd --system --create-home messenger
RUN apt-get update \
&& apt-get install --yes --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/* \
&& useradd --system --create-home messenger
USER messenger
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD wget --spider --quiet http://localhost:8080/health/live || exit 1
CMD curl --fail --silent --show-error http://localhost:8080/health/live || exit 1
ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]