# Runtime-only Dockerfile for CI builds. # Expects the pre-built JAR at booklore-api/build/libs/booklore-api-0.0.1-SNAPSHOT.jar # and entrypoint.sh in the build context. FROM eclipse-temurin:25-jre-alpine ARG APP_VERSION ARG APP_REVISION LABEL org.opencontainers.image.title="BookLore" \ org.opencontainers.image.description="BookLore: A self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo & KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \ org.opencontainers.image.source="https://github.com/booklore-app/booklore" \ org.opencontainers.image.url="https://github.com/booklore-app/booklore" \ org.opencontainers.image.documentation="https://booklore.org/docs/getting-started" \ org.opencontainers.image.version=$APP_VERSION \ org.opencontainers.image.revision=$APP_REVISION \ org.opencontainers.image.licenses="GPL-3.0" \ org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine" ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication -XX:+UseContainerSupport -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0" RUN apk update && apk add --no-cache su-exec COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh COPY booklore-api/build/libs/booklore-api-0.0.1-SNAPSHOT.jar /app/app.jar ARG BOOKLORE_PORT=6060 EXPOSE ${BOOKLORE_PORT} ENTRYPOINT ["entrypoint.sh"] CMD ["java", "-jar", "/app/app.jar"]