All checks were successful
continuous-integration/drone/push Build is passing
Introduced JWT-based authentication with role handling using Keycloak. Added the `/me` endpoint to return user information and roles. Configured testing, Keycloak integration, and public-facing `/public/info` endpoint enhancements.
15 lines
427 B
Docker
15 lines
427 B
Docker
# ---- build ----
|
|
FROM gradle:8.10.2-jdk21 AS build
|
|
WORKDIR /workspace
|
|
COPY . .
|
|
RUN gradle clean bootJar --no-daemon
|
|
|
|
# ---- runtime ----
|
|
FROM eclipse-temurin:21-jre
|
|
ENV JAVA_OPTS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=75"
|
|
WORKDIR /app
|
|
COPY --from=build /workspace/build/libs/*-SNAPSHOT.jar app.jar
|
|
EXPOSE 8080
|
|
LABEL com.centurylinklabs.watchtower.enable=true
|
|
ENTRYPOINT ["sh","-c","java $JAVA_OPTS -jar /app/app.jar"]
|