Files
hemhub/Dockerfile
Urban Modig 699fb3836b
All checks were successful
continuous-integration/drone/push Build is passing
Add JWT-based security and /me endpoint
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.
2025-10-05 19:17:56 +02:00

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