- Introduced `NodeProfileIT` for testing application-node.yml and login functionality with existing Sequelize tables. - Created `SchemaMigrationIT` to validate schema migrations and ensure data integrity across various scenarios. - Added `LoginRateLimitFilterTest` to verify independent rate limiting for login attempts from different IP addresses. - Implemented `MigrationPasswordEncoderTest` to ensure compatibility with legacy password formats and enforce password policies. - Developed tests for email templates in `ResetPasswordEmailTemplateTest` and `SmtpResetMailSenderTest` to validate HTML escaping and email content. - Added SQL fixture `sequelize-schema.sql` to support integration tests with predefined database structure and data.
14 lines
407 B
Docker
14 lines
407 B
Docker
FROM maven:3.9.11-eclipse-temurin-25 AS build
|
|
WORKDIR /build
|
|
COPY pom.xml .
|
|
COPY src src
|
|
RUN mvn -B -ntp -DskipTests package
|
|
|
|
FROM eclipse-temurin:25-jre
|
|
WORKDIR /app
|
|
RUN groupadd --system app && useradd --system --gid app app
|
|
COPY --from=build --chown=app:app /build/target/genesis-auth-0.0.1-SNAPSHOT.jar app.jar
|
|
USER app
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=75", "-jar", "/app/app.jar"]
|