studentportalen/branch-bff.Dockerfile
nenzen 15329b1d52
All checks were successful
Code style BFF / check (push) Successful in 28s
Add Checkstyle and Prettier to BFF (#65)
This PR adds Checkstyle and Prettier configuration to BFF. It also adds a gitea action to run these.

Reviewed-on: #65
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se>
Co-authored-by: nenzen <nenzen@dsv.su.se>
Co-committed-by: nenzen <nenzen@dsv.su.se>
2026-01-13 13:17:18 +01:00

35 lines
668 B
Docker

FROM eclipse-temurin:25 AS build
WORKDIR /build
COPY mvnw mvnw
COPY .mvn/ .mvn/
COPY pom.xml pom.xml
COPY checkstyle-configuration.xml checkstyle-configuration.xml
COPY checkstyle-suppressions.xml checkstyle-suppressions.xml
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN ./mvnw dependency:go-offline \
--batch-mode \
--fail-fast
COPY src/ src/
RUN ./mvnw package \
--batch-mode \
--fail-fast \
-DskipTests
FROM eclipse-temurin:25 AS runtime
WORKDIR /bff
COPY --from=build /build/target/*.war ./bff.war
ENV SPRING_PROFILES_ACTIVE=branch
EXPOSE 8080
ENTRYPOINT ["java", "--enable-preview", "-jar", "bff.war"]