Vendor unrar binaries for Alpine 3.23 compatibility (#2950)

This commit is contained in:
ACX
2026-02-24 23:12:29 -07:00
committed by GitHub
parent 49063b9f7a
commit 9ca44a5a03
7 changed files with 285 additions and 2 deletions
+5 -1
View File
@@ -56,9 +56,13 @@ LABEL org.opencontainers.image.title="BookLore" \
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 unrar && \
ARG TARGETARCH
RUN apk update && apk add --no-cache su-exec libstdc++ libgcc && \
mkdir -p /bookdrop
COPY docker/unrar/unrar-${TARGETARCH} /usr/local/bin/unrar
RUN chmod 755 /usr/local/bin/unrar
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
COPY --from=springboot-build /springboot-app/build/libs/booklore-api-0.0.1-SNAPSHOT.jar /app/app.jar