Skip to content

Commit

Permalink
try to fix this variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 29, 2024
1 parent a298010 commit 5902959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.crf
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ WORKDIR /opt/grobid

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 \
PROCESS_MECHANISM="-Djdk.lang.Process.launchMechanism=vfork"; \
ENV PGROBID_SERVICE_OPTS = "-Djdk.lang.Process.launchMechanism=vfork ${PGROBID_SERVICE_OPTS}"; \
fi

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"]

ARG GROBID_VERSION
Expand Down

0 comments on commit 5902959

Please sign in to comment.