Files
admin b79ad568e0 Add integration tests for NodeProfile and SchemaMigration, implement login rate limiting, and enhance password encoding
- 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.
2026-10-23 10:26:40 +02:00

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"]