Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 30, 2024
1 parent efa5dd3 commit e9accbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.crf
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ WORKDIR /opt/grobid
COPY --from=builder /opt/grobid .

RUN if [ "$TARGETARCH" = "arm64" ]; then \
export PROCESS_MECHANISM="-Djdk.lang.Process.launchMechanism=vfork"; \
export PROCESS_MECHANISM="-Djdk.lang.Process.launchMechanism=vfork "; \
else \
export PROCESS_MECHANISM=""; \
fi && \
echo "PROCESS_MECHANISM=$PROCESS_MECHANISM" >> /etc/environment

RUN echo "BAO" \
echo "$PROCESS_MECHANISM"
RUN echo "Selected process spawning mechanism: $PROCESS_MECHANISM"

ENV GROBID_SERVICE_OPTS "$PROCESS_MECHANISM-Djava.library.path=grobid-home/lib/lin-64:grobid-home/lib/lin-64/jep --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"

Expand Down

0 comments on commit e9accbd

Please sign in to comment.