Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 29, 2024
1 parent 5902959 commit 1c1ae9f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.crf
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ COPY --from=builder /opt/grobid .

ENV GROBID_SERVICE_OPTS "-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"

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

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"

CMD ["./grobid-service/bin/grobid-service"]

Expand Down

0 comments on commit 1c1ae9f

Please sign in to comment.