feat: Extend docker local setups, remove request URL from API composables

This commit is contained in:
2025-12-23 19:20:14 +01:00
parent 46d6431747
commit 805c66bc4f
11 changed files with 71 additions and 30 deletions

View File

@@ -33,12 +33,16 @@ RUN apk add --no-cache \
texmf-dist-fontsextra
RUN addgroup -S spring && adduser -S spring -G spring
# PDF cache directory must be writable by the non-root user (and ideally mounted as a volume in production)
RUN mkdir -p /var/lib/legalconsenthub/pdfs && chown -R spring:spring /var/lib/legalconsenthub
USER spring:spring
COPY --from=builder /workspace/app/build/libs/*.jar app.jar
ENV SPRING_PROFILES_ACTIVE=prod
ENV JAVA_OPTS="-Xms256m -Xmx512m"
ENV LEGALCONSENTHUB_PDF_STORAGE_FILESYSTEM_BASE_DIR=/var/lib/legalconsenthub/pdfs
EXPOSE 8080